From 03e8028ce6324fef265abac03ec40471fadc1961 Mon Sep 17 00:00:00 2001 From: MichaƂ Rzepka Date: Wed, 31 Aug 2016 12:58:54 +0200 Subject: lib/ofctl_v1_4: correct argument order for OFPFlowMod constructor Invalid OFPFlowMod flag and importance values were observed when using app/ofctl_rest. This patch restores the proper order of arguments passed to OFPFlowMod constructor in mod_flow_entry (ofctl_v1_4.py). Signed-off-by: Michal Rzepka Signed-off-by: FUJITA Tomonori --- ryu/lib/ofctl_v1_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/ofctl_v1_4.py b/ryu/lib/ofctl_v1_4.py index 71e33fd7..edfe297e 100644 --- a/ryu/lib/ofctl_v1_4.py +++ b/ryu/lib/ofctl_v1_4.py @@ -827,7 +827,7 @@ def mod_flow_entry(dp, flow, cmd): flow_mod = dp.ofproto_parser.OFPFlowMod( dp, cookie, cookie_mask, table_id, cmd, idle_timeout, hard_timeout, priority, buffer_id, out_port, out_group, - importance, flags, match, inst) + flags, importance, match, inst) ofctl_utils.send_msg(dp, flow_mod, LOG) -- cgit v1.2.3