diff mbox series

[ovs-dev,23/26] tests: Add macro for OFTABLE_ECMP_NH table number.

Message ID 20240201161804.210604-24-amusil@redhat.com
State Superseded
Headers show
Series Remove most of the hardcoded table numbers | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Ales Musil Feb. 1, 2024, 4:18 p.m. UTC
Add macro for OFTABLE_ECMP_NH and replace all table=77
occurrences in OF with table=OFTABLE_ECMP_NH.

Signed-off-by: Ales Musil <amusil@redhat.com>
---
 tests/ovn-macros.at | 1 +
 tests/system-ovn.at | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at
index 91779455f..9b01b1491 100644
--- a/tests/ovn-macros.at
+++ b/tests/ovn-macros.at
@@ -1006,3 +1006,4 @@  m4_define([OFTABLE_CHK_IN_PORT_SEC], [73])
 m4_define([OFTABLE_CHK_IN_PORT_SEC_ND], [74])
 m4_define([OFTABLE_CHK_OUT_PORT_SEC], [75])
 m4_define([OFTABLE_ECMP_NH_MAC], [76])
+m4_define([OFTABLE_ECMP_NH], [77])
diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index a44ff4b2b..27b3cdc5b 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -6159,7 +6159,7 @@  OVS_WAIT_UNTIL([
 test $(ovs-ofctl dump-flows br-int | grep -c 'table=OFTABLE_ECMP_NH_MAC, n_packets') -eq 0
 ])
 OVS_WAIT_UNTIL([
-test $(ovs-ofctl dump-flows br-int | grep -c 'table=77, n_packets') -eq 0
+test $(ovs-ofctl dump-flows br-int | grep -c 'table=OFTABLE_ECMP_NH, n_packets') -eq 0
 ])
 
 ovs-ofctl dump-flows br-int
@@ -6352,7 +6352,7 @@  OVS_WAIT_UNTIL([
 test $(ovs-ofctl dump-flows br-int | grep -c 'table=OFTABLE_ECMP_NH_MAC, n_packets') -eq 0
 ])
 OVS_WAIT_UNTIL([
-test $(ovs-ofctl dump-flows br-int | grep -c 'table=77, n_packets') -eq 0
+test $(ovs-ofctl dump-flows br-int | grep -c 'table=OFTABLE_ECMP_NH, n_packets') -eq 0
 ])
 
 ovs-ofctl dump-flows br-int