From 2b202aff8b9905d75257118b43eb16044a74a8fe Mon Sep 17 00:00:00 2001 From: Minoru TAKAHASHI Date: Thu, 11 Sep 2014 14:49:19 +0900 Subject: ofctl_v1_0: correct flow modify message following fields is not set at mod_flow_stats command: * out_port, buffer_id this patch fixes this problem. Signed-off-by: Minoru TAKAHASHI Signed-off-by: FUJITA Tomonori --- ryu/lib/ofctl_v1_0.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py index f9b563df..96f28361 100644 --- a/ryu/lib/ofctl_v1_0.py +++ b/ryu/lib/ofctl_v1_0.py @@ -312,6 +312,8 @@ def mod_flow_entry(dp, flow, cmd): cookie = int(flow.get('cookie', 0)) priority = int(flow.get('priority', dp.ofproto.OFP_DEFAULT_PRIORITY)) + buffer_id = int(flow.get('buffer_id', dp.ofproto.OFP_NO_BUFFER)) + out_port = int(flow.get('out_port', dp.ofproto.OFPP_NONE)) flags = int(flow.get('flags', 0)) idle_timeout = int(flow.get('idle_timeout', 0)) hard_timeout = int(flow.get('hard_timeout', 0)) @@ -321,7 +323,9 @@ def mod_flow_entry(dp, flow, cmd): flow_mod = dp.ofproto_parser.OFPFlowMod( datapath=dp, match=match, cookie=cookie, command=cmd, idle_timeout=idle_timeout, - hard_timeout=hard_timeout, priority=priority, flags=flags, + hard_timeout=hard_timeout, priority=priority, + buffer_id=buffer_id, out_port=out_port, + flags=flags, actions=actions) dp.send_msg(flow_mod) -- cgit v1.2.3