Add error codes for Open Flow v1.2
[openvswitch] / ofproto / ofproto.c
index aa97124f49f99e85fc300d0aa70b07742bdc196a..e7e040126eb12c13259b78e2d13e66e7f43673be 100644 (file)
@@ -3064,7 +3064,7 @@ handle_role_request(struct ofconn *ofconn, const struct ofp_header *oh)
     role = ntohl(nrr->role);
     if (role != NX_ROLE_OTHER && role != NX_ROLE_MASTER
         && role != NX_ROLE_SLAVE) {
-        return OFPERR_NXBRC_BAD_ROLE;
+        return OFPERR_OFPRRFC_BAD_ROLE;
     }
 
     if (ofconn_get_role(ofconn) != role