diff options
author | Yuichi Ito <ito.yuichi0@gmail.com> | 2014-05-27 10:05:43 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-05-27 20:24:28 +0900 |
commit | af5267b4abbc41ac4d9facd8ad6ffad23b789aaf (patch) | |
tree | 5708d5305a421c713b5633f51d0cbb6b65e4d23a | |
parent | 99ab1a4a9538b57df901462580a0d3458ff94c4a (diff) |
sw test tool: Enable parsing OFPGroupMod messages in 'prerequisite'
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/tests/switch/tester.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index 57652123..eacd3fb0 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -99,6 +99,7 @@ KEY_DESC = 'description' KEY_PREREQ = 'prerequisite' KEY_FLOW = 'OFPFlowMod' KEY_METER = 'OFPMeterMod' +KEY_GROUP = 'OFPGroupMod' KEY_TESTS = 'tests' KEY_INGRESS = 'ingress' KEY_EGRESS = 'egress' @@ -1236,7 +1237,7 @@ class Test(stringify.StringifyMixin): prerequisite = [] if KEY_PREREQ not in buf: raise ValueError('a test requires a "%s" block' % KEY_PREREQ) - allowed_mod = [KEY_FLOW, KEY_METER] + allowed_mod = [KEY_FLOW, KEY_METER, KEY_GROUP] for flow in buf[KEY_PREREQ]: key, value = flow.popitem() if key not in allowed_mod: |