[dts] [PATCH V1] tests/generic_flow_api: put validate rule after create rule
Xia Yan
yanx.xia at intel.com
Tue Mar 30 10:18:28 CEST 2021
it's not work if execute validate rule before execute create rule, so put validate
after create rule.
Signed-off-by: Xia Yan <yanx.xia at intel.com>
---
tests/TestSuite_generic_flow_api.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/TestSuite_generic_flow_api.py b/tests/TestSuite_generic_flow_api.py
index 6822f8ab..5f9de37c 100644
--- a/tests/TestSuite_generic_flow_api.py
+++ b/tests/TestSuite_generic_flow_api.py
@@ -705,19 +705,19 @@ class TestGeneric_flow_api(TestCase):
time.sleep(2)
# create the flow rules
basic_flow_actions = [
- {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']},
- {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'],
- 'actions': ['queue']},
- {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'],
- 'actions': ['queue']},
- {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'],
- 'actions': ['queue']},
{'create': 'create', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']},
{'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'],
'actions': ['queue']},
{'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'],
'actions': ['queue']},
{'create': 'create', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'],
+ 'actions': ['queue']},
+ {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip'], 'actions': ['queue']},
+ {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'udp', 'sport', 'dport'],
+ 'actions': ['queue']},
+ {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'tcp', 'sport', 'dport'],
+ 'actions': ['queue']},
+ {'create': 'validate', 'flows': ['ipv4', 'sip', 'dip', 'proto', 'sctp', 'sport', 'dport'],
'actions': ['queue']}
]
extrapkt_rulenum = self.all_flows_process(basic_flow_actions)
--
2.17.1
More information about the dts
mailing list