diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-11-27 15:22:01 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-11-28 10:33:23 +0900 |
commit | 4d2638791024e5b7eb71047c4416793c1d74023c (patch) | |
tree | 65b85e7f7640db9e485b11cf3bd20a7500b39a04 | |
parent | 3b946c01929c6f390721731c9d31aa09feeb858a (diff) |
ofproto_v1_5_parser: Change default of command_bucket_id
Currently, Ryu will send the OFPGroupMod message with
"command_bucket_id=0" by the default if using the OpenFlow version 1.5.
OTOH, Open vSwitch expects "command_bucket_id=OFPG_BUCKET_ALL" if
"command" is other than OFPGC_INSERT_BUCKET or OFPGC_REMOVE_BUCKET,
otherwise OVS will rejects the OFPGroupMod message.
This patch changes the default value of "command_bucket_id" to
OFPG_BUCKET_ALL as OVS expects.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_5_parser.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py index b61e6fef..0fbb5c03 100644 --- a/ryu/ofproto/ofproto_v1_5_parser.py +++ b/ryu/ofproto/ofproto_v1_5_parser.py @@ -6131,7 +6131,8 @@ class OFPGroupMod(MsgBase): datapath.send_msg(req) """ def __init__(self, datapath, command=ofproto.OFPGC_ADD, - type_=ofproto.OFPGT_ALL, group_id=0, command_bucket_id=0, + type_=ofproto.OFPGT_ALL, group_id=0, + command_bucket_id=ofproto.OFPG_BUCKET_ALL, buckets=None, properties=None, bucket_array_len=None): buckets = buckets if buckets else [] properties = properties if properties else [] |