summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2014-04-24 09:39:33 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-04-24 23:09:24 +0900
commit4a38237357beffbde391975fa6c3b1167e03bc00 (patch)
tree697b5a1774296ce6a844d71440fecc56b969df01
parent9664f3b9e37cc6aaf1ab3464718d92eb1faf6b79 (diff)
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 <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/tests/integrated/test_request_reply_v12.py2
1 files changed, 1 insertions, 1 deletions
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)