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 <[email protected]>
---
diff --git a/ryu/lib/ofctl_v1_4.py b/ryu/lib/ofctl_v1_4.py
index 71e33fd..edfe297 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)

-- 
Michał Rzepka


------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to