* used instead, when it is appropriate, because that is such a special
* case.) */
NXBRC_BAD_TABLE_ID = 0x200,
+
+ /* NXT_ROLE_REQUEST specified an invalid role. */
+ NXBRC_BAD_ROLE = 0x201,
};
/* Additional "code" values for OFPET_FLOW_MOD_FAILED. */
role = ntohl(nrr->role);
if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER
&& role != NX_ROLE_SLAVE) {
- /* There's no good error code for this. */
- return ofp_mkerr(OFPET_BAD_REQUEST, -1);
+ return ofp_mkerr_nicira(OFPET_BAD_REQUEST, NXBRC_BAD_ROLE);
}
if (ofconn_get_role(ofconn) != role