projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b938039
)
ofproto: Allow service controllers to become masters and slaves.
author
Ben Pfaff
<blp@nicira.com>
Thu, 26 Jan 2012 21:19:39 +0000
(13:19 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 9 Feb 2012 21:23:35 +0000
(13:23 -0800)
I don't remember why we disallow this. It seems reasonable to me to enable
it. A test in a upcoming commit relies upon the ability.
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index 7e94b219a022e5e6f25f01d77ddbadc47114413f..fe3b6206cae20f373efe77cf5ef456c2c6c049b6 100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-3062,10
+3062,6
@@
handle_role_request(struct ofconn *ofconn, const struct ofp_header *oh)
struct ofpbuf *buf;
uint32_t role;
- if (ofconn_get_type(ofconn) != OFCONN_PRIMARY) {
- return OFPERR_OFPBRC_EPERM;
- }
-
role = ntohl(nrr->role);
if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER
&& role != NX_ROLE_SLAVE) {