ofproto: Allow service controllers to become masters and slaves.
authorBen Pfaff <blp@nicira.com>
Thu, 26 Jan 2012 21:19:39 +0000 (13:19 -0800)
committerBen 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

index 7e94b21..fe3b620 100644 (file)
@@ -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) {