diff options
author | Minoru TAKAHASHI <takahashi.minoru7@gmail.com> | 2014-09-11 14:49:19 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-09-12 09:04:46 -0700 |
commit | 2b202aff8b9905d75257118b43eb16044a74a8fe (patch) | |
tree | 54e08a528632206b039ba0b2a9a6746af7ab1399 | |
parent | 4565fa4122b4550398d945b600ca34669ad7e707 (diff) |
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 <takahashi.minoru7@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/ofctl_v1_0.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |