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.yusu...@gmail.com> --- ryu/ofproto/ofproto_v1_5_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py index b61e6fe..0fbb5c0 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 [] -- 2.7.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel