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. Signed-off-by: Satoshi Fujimoto <satoshi.fujimoto7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
6dfda4a227
commit
b7dcd40837
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user