Add missing fields in expected Flow instances 43/77343/2
authorStephen Kitt <skitt@redhat.com>
Tue, 30 Oct 2018 13:39:54 +0000 (14:39 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 30 Oct 2018 15:24:18 +0000 (16:24 +0100)
Flow objects have barrier, installHw and strict fields which need to
be initialised.

Change-Id: Ie4d6d673c83a5861d2864b240ad7054da2198117
Signed-off-by: Stephen Kitt <skitt@redhat.com>
elanmanager/impl/src/test/java/org/opendaylight/netvirt/elanmanager/tests/ExpectedObjects.xtend

index dae25f25f08b6c677132881b609cb72274b8a514..dc71d55b1b195b21e51d15fde25128fe07f3e529 100644 (file)
@@ -253,9 +253,11 @@ class ExpectedObjects {
     def static Flow checkSmac(String flowId, InterfaceInfo interfaceInfo, ElanInstance elanInstance) {
         new FlowBuilder >> [
             flowName = ELAN1
+            barrier = false
             hardTimeout = 0
             id = new FlowId(flowId)
             idleTimeout = 0
+            installHw = true
             instructions = new InstructionsBuilder >> [
                 instruction = #[
                     new InstructionBuilder >> [
@@ -280,6 +282,7 @@ class ExpectedObjects {
                 ]
             ]
             priority = 20
+            strict = true
             tableId = 50 as short
         ]
     }
@@ -287,10 +290,12 @@ class ExpectedObjects {
     def static Flow checkDmacOfSameDpn(String flowId, InterfaceInfo interfaceInfo, ElanInstance elanInstance) {
     val regvalue = MetaDataUtil.getReg6ValueForLPortDispatcher(interfaceInfo.getInterfaceTag(), NwConstants.DEFAULT_SERVICE_INDEX);
         new FlowBuilder >> [
+            barrier = false
             flowName = ELAN1
             hardTimeout = 0
             id = new FlowId(flowId)
             idleTimeout = 0
+            installHw = true;
             instructions = new InstructionsBuilder >> [
                 instruction = #[
                     new InstructionBuilder >> [
@@ -340,6 +345,7 @@ class ExpectedObjects {
                 ]
             ]
             priority = 20
+            strict = true
             tableId = 51 as short
         ]
     }
@@ -348,10 +354,12 @@ class ExpectedObjects {
         val regvalue = MetaDataUtil.getReg6ValueForLPortDispatcher(tepDetails.getInterfaceInfo().getInterfaceTag(), NwConstants.DEFAULT_SERVICE_INDEX);
         val tnlId = new BigInteger(""+interfaceInfo.getInterfaceTag())
         new FlowBuilder >> [
+            barrier = false
             flowName = ELAN1
             hardTimeout = 0
             id = new FlowId(flowId)
             idleTimeout = 0
+            installHw = true
             instructions = new InstructionsBuilder >> [
                 instruction = #[
                     new InstructionBuilder >> [
@@ -411,6 +419,7 @@ class ExpectedObjects {
                 ]
             ]
             priority = 20
+            strict = true
             tableId = 51 as short
         ]
     }