ofctl_v1_5 can't send role request messages, because of lack of arguments. This patch fixes it by adding the argument for short_id. ofctl_v1_5 sets None to short_id. It means ofctl_v1_5 uses the default value of short_id.
Signed-off-by: Satoshi Fujimoto <[email protected]> --- ryu/lib/ofctl_v1_5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/ofctl_v1_5.py b/ryu/lib/ofctl_v1_5.py index 1b4b455..90eb382 100644 --- a/ryu/lib/ofctl_v1_5.py +++ b/ryu/lib/ofctl_v1_5.py @@ -1107,7 +1107,7 @@ def mod_port_behavior(dp, port_config): def set_role(dp, role): r = UTIL.ofp_role_from_user(role.get('role', dp.ofproto.OFPCR_ROLE_EQUAL)) - role_request = dp.ofproto_parser.OFPRoleRequest(dp, r, 0) + role_request = dp.ofproto_parser.OFPRoleRequest(dp, r, None, 0) ofctl_utils.send_msg(dp, role_request, LOG) -- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
