ofctl_v1_5: Fix lack of arguments for modify role API
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.
@@ -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)
