Committed by
Charles Chan
ONOS-5259 Fix ClassCastException
Change-Id: I7956d1392f620a5bdb4800bc45bfaef1a03d8e38
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -577,9 +577,9 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { | ... | @@ -577,9 +577,9 @@ class OFChannelHandler extends IdleStateAwareChannelHandler { |
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() == | 579 | (((OFBadRequestErrorMsg) m).getCode() == |
580 | - OFBadRequestCode.EPERM) || | 580 | + OFBadRequestCode.EPERM || |
581 | ((OFBadRequestErrorMsg) m).getCode() == | 581 | ((OFBadRequestErrorMsg) m).getCode() == |
582 | - OFBadRequestCode.IS_SLAVE) { | 582 | + OFBadRequestCode.IS_SLAVE)) { |
583 | // We are the master controller and the switch returned | 583 | // We are the master controller and the switch returned |
584 | // a permission error. This is a likely indicator that | 584 | // a permission error. This is a likely indicator that |
585 | // 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