From 4a38237357beffbde391975fa6c3b1167e03bc00 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Thu, 24 Apr 2014 09:39:33 +0900 Subject: [PATCH] tests/integrated: Use table_id greater than the current table for goto-table instruction For a goto-table instruction use a table_id greater than the table in which a flow will be inserted. OpenFlow 1.2 section 5.6 stipulates that this is required. I noticed this when using Open vSwitch's "make ryu-check" as Open vSwitch enforces the above stipulation. Signed-off-by: Simon Horman Signed-off-by: FUJITA Tomonori --- ryu/tests/integrated/test_request_reply_v12.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/tests/integrated/test_request_reply_v12.py b/ryu/tests/integrated/test_request_reply_v12.py index 125cc9f5..b60a2ba8 100644 --- a/ryu/tests/integrated/test_request_reply_v12.py +++ b/ryu/tests/integrated/test_request_reply_v12.py @@ -434,7 +434,7 @@ class RunTest(tester.TestFlowBase): def test_flow_add_goto_table(self, dp): self._verify = dp.ofproto.OFPIT_GOTO_TABLE - inst = [dp.ofproto_parser.OFPInstructionGotoTable(0), ] + inst = [dp.ofproto_parser.OFPInstructionGotoTable(1), ] self.mod_flow(dp, inst=inst) self.send_flow_stats(dp)