diff options
author | Denis Shevchenko <shevchenko_d@bifit.com> | 2017-05-22 14:38:38 +0300 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-23 14:30:33 +0900 |
commit | b37d9bb56a30ee390732a530ea8e9cb174db1759 (patch) | |
tree | 0589b6f23fc1b5cf627b6606df62f5f5f9bf45ca /test/scenario_test | |
parent | 579c128555046ddf0d8dbe9a57a1a990a010d85e (diff) |
flowspec: handling of >2 logical elements and fixed test
Diffstat (limited to 'test/scenario_test')
-rw-r--r-- | test/scenario_test/flow_spec_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/scenario_test/flow_spec_test.py b/test/scenario_test/flow_spec_test.py index 17a36028..2671bf5e 100644 --- a/test/scenario_test/flow_spec_test.py +++ b/test/scenario_test/flow_spec_test.py @@ -49,7 +49,7 @@ class GoBGPTestBase(unittest.TestCase): matchs = ['destination 10.0.0.0/24', 'source 20.0.0.0/24'] thens = ['discard'] e1.add_route(route='flow1', rf='ipv4-flowspec', matchs=matchs, thens=thens) - matchs2 = ['tcp-flags S', 'protocol ==tcp ==udp', "packet-length '>1000&<2000'"] + matchs2 = ['tcp-flags S', 'protocol ==tcp ==udp', "packet-length '>1000&<2000'", "source-port '!=2&!=22&!=222'"] thens2 = ['rate-limit 9600', 'redirect 0.10:100', 'mark 20', 'action sample'] g1.add_route(route='flow1', rf='ipv4-flowspec', matchs=matchs2, thens=thens2) matchs3 = ['destination 2001::/24/10', 'source 2002::/24/15'] |