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>
struct ofpbuf *buf;
uint32_t role;
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) {
role = ntohl(nrr->role);
if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER
&& role != NX_ROLE_SLAVE) {