From af5267b4abbc41ac4d9facd8ad6ffad23b789aaf Mon Sep 17 00:00:00 2001 From: Yuichi Ito Date: Tue, 27 May 2014 10:05:43 +0900 Subject: [PATCH] sw test tool: Enable parsing OFPGroupMod messages in 'prerequisite' Signed-off-by: Yuichi Ito Signed-off-by: FUJITA Tomonori --- ryu/tests/switch/tester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: