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 <mrzepka@student.agh.edu.pl>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Michał Rzepka 2016-08-31 12:58:54 +02:00 committed by FUJITA Tomonori
parent c09cd3dc68
commit 03e8028ce6

View File

@ -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)