summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYuichi Ito <ito.yuichi0@gmail.com>2014-02-07 09:44:28 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-02-07 19:53:19 +0900
commit4030ec74b2d226d34286afc189904e009e34b968 (patch)
tree416d319e6cb9914cac39932138e227456e4b69fb
parent29027c2db4f060daf1f1e522a0210831f6de8a72 (diff)
sw test tool: FIX: return the transaction id when flow entries were deleted
OfTester._test_initialize() expects the transaction id as a return value of TargetSw.del_test_flow() for checking the error. but this method at current version does not return the transaction id. this patch gets del_test_flow() to return the transaction id. 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py
index 50f7fc79..4727435f 100644
--- a/ryu/tests/switch/tester.py
+++ b/ryu/tests/switch/tester.py
@@ -747,7 +747,7 @@ class TargetSw(OpenFlowSw):
command=ofp.OFPFC_DELETE,
out_port=ofp.OFPP_ANY,
out_group=ofp.OFPG_ANY)
- self.dp.send_msg(mod)
+ return self._send_msg(mod)
def send_flow_stats(self):
""" Get all flow. """