From 4030ec74b2d226d34286afc189904e009e34b968 Mon Sep 17 00:00:00 2001 From: Yuichi Ito Date: Fri, 7 Feb 2014 09:44:28 +0900 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- ryu/tests/switch/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. """