summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMatthieu Texier <matthieu@texier.tv>2017-03-02 15:56:02 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-03-02 15:56:02 +0900
commit55e96842593e9645ea0866398d57cfa8a8530385 (patch)
tree7d821ee75f9a787b6735e6d75c52622aef2b607e /test
parent9a28be912628741654140edf8e3d77a2028a96e8 (diff)
flowspec: comply with new draft RFC5575bis normalized operators
Diffstat (limited to 'test')
-rw-r--r--test/scenario_test/flow_spec_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scenario_test/flow_spec_test.py b/test/scenario_test/flow_spec_test.py
index c8fa9068..656498d8 100644
--- a/test/scenario_test/flow_spec_test.py
+++ b/test/scenario_test/flow_spec_test.py
@@ -44,13 +44,13 @@ 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'"]
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']
thens3 = ['discard']
e1.add_route(route='flow2', rf='ipv6-flowspec', matchs=matchs3, thens=thens3)
- matchs4 = ['destination 2001::/24 10', "label '=100'"]
+ matchs4 = ['destination 2001::/24 10', "label '==100'"]
thens4 = ['discard']
g1.add_route(route='flow2', rf='ipv6-flowspec', matchs=matchs4, thens=thens4)