Add macro for OFTABLE_LOG_INGRESS_PIPELINE and replace all table=8
occurrences in OF with table=OFTABLE_LOG_INGRESS_PIPELINE.

Signed-off-by: Ales Musil <[email protected]>
---
 tests/ovn-controller-vtep.at | 4 ++--
 tests/ovn-macros.at          | 1 +
 tests/ovn.at                 | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/ovn-controller-vtep.at b/tests/ovn-controller-vtep.at
index 083bbdbc5..462e858f1 100644
--- a/tests/ovn-controller-vtep.at
+++ b/tests/ovn-controller-vtep.at
@@ -600,7 +600,7 @@ OVS_WAIT_UNTIL([ovs-ofctl dump-flows br-int 
table=OFTABLE_PHY_TO_LOG | grep 'pri
 AT_CHECK([ovs-ofctl dump-flows br-int table=OFTABLE_PHY_TO_LOG | grep 
'priority=110' | \
           awk '{print $(NF-1), $NF}' | sed -e 
's/in_port=[[0-9]]\+/in_port=<>/g' | \
           sed -e 's/0x[[0-9a-f]]\+/0x<>/g'], [0], [dnl
-priority=110,tun_id=0x<>,in_port=<> 
actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,8)
+priority=110,tun_id=0x<>,in_port=<> 
actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,OFTABLE_LOG_INGRESS_PIPELINE)
 ])
 
 # cleanup
@@ -625,7 +625,7 @@ OVS_WAIT_UNTIL([ovs-ofctl dump-flows br-int 
table=OFTABLE_PHY_TO_LOG | grep 'pri
 AT_CHECK([ovs-ofctl dump-flows br-int table=OFTABLE_PHY_TO_LOG | grep 
'priority=110' | \
           awk '{print $(NF-1), $NF}' | sed -e 
's/in_port=[[0-9]]\+/in_port=<>/g' | \
           sed -e 's/0x[[0-9a-f]]\+/0x<>/g'], [0], [dnl
-priority=110,tun_id=0x<>,in_port=<> 
actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,8)
+priority=110,tun_id=0x<>,in_port=<> 
actions=move:NXM_NX_TUN_ID[[0..23]]->OXM_OF_METADATA[[0..23]],load:0x<>->NXM_NX_REG14[[0..14]],load:0x<>->NXM_NX_REG10[[1]],resubmit(,OFTABLE_LOG_INGRESS_PIPELINE)
 ])
 
 OVN_CLEANUP([hv1])
diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at
index 1e586c639..bf0b68291 100644
--- a/tests/ovn-macros.at
+++ b/tests/ovn-macros.at
@@ -990,3 +990,4 @@ m4_define([TAG_UNSTABLE], [
 ])
 
 m4_define([OFTABLE_PHY_TO_LOG], [0])
+m4_define([OFTABLE_LOG_INGRESS_PIPELINE], [8])
diff --git a/tests/ovn.at b/tests/ovn.at
index b9f53860b..d29bb9478 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -28013,7 +28013,7 @@ ovn_attach n1 br-phys 192.168.0.1
 
 # Chassis hv1 should add flows for the ls1 datapath in table 8 
(ls_in_port_sec_l2).
 dp_key=$(ovn-sbctl --bare --columns tunnel_key list Datapath_Binding ls1)
-OVS_WAIT_UNTIL([as hv1 ovs-ofctl dump-flows br-int | grep -E 
"table=8.*metadata=0x${dp_key}"])
+OVS_WAIT_UNTIL([as hv1 ovs-ofctl dump-flows br-int | grep -E 
"table=OFTABLE_LOG_INGRESS_PIPELINE.*metadata=0x${dp_key}"])
 
 OVN_CLEANUP([hv1])
 AT_CLEANUP
-- 
2.43.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to