Add OF 1.3 status for reasserting master controller
Change-Id: Ibd25eb8189f67bc8a5107ea0245cfbdee24549ed
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -576,8 +576,10 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { | ... | @@ -576,8 +576,10 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { |
576 | throws IOException, SwitchStateException { | 576 | throws IOException, SwitchStateException { |
577 | // if we get here, then the error message is for something else | 577 | // if we get here, then the error message is for something else |
578 | if (m.getErrType() == OFErrorType.BAD_REQUEST && | 578 | if (m.getErrType() == OFErrorType.BAD_REQUEST && |
579 | + (((OFBadRequestErrorMsg) m).getCode() == | ||
580 | + OFBadRequestCode.EPERM) || | ||
579 | ((OFBadRequestErrorMsg) m).getCode() == | 581 | ((OFBadRequestErrorMsg) m).getCode() == |
580 | - OFBadRequestCode.EPERM) { | 582 | + OFBadRequestCode.IS_SLAVE) { |
581 | // We are the master controller and the switch returned | 583 | // We are the master controller and the switch returned |
582 | // a permission error. This is a likely indicator that | 584 | // a permission error. This is a likely indicator that |
583 | // the switch thinks we are slave. Reassert our | 585 | // the switch thinks we are slave. Reassert our | ... | ... |
-
Please register or login to post a comment