From b7dcd408374ad805895c7d76e1fe6b4fcca87693 Mon Sep 17 00:00:00 2001 From: Satoshi Fujimoto Date: Wed, 22 Mar 2017 13:23:08 +0900 Subject: [PATCH] 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 Signed-off-by: FUJITA Tomonori --- 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 1b4b4552..90eb3829 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)