@Override void processOFError(final SwitchChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for desc stats reply (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final ControllerChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for Features Request (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final SwitchChannelHandler h, final OFError m) { h.log.error("Error waiting for Hello (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final ControllerChannelHandler h, final OFError m) throws IOException { h.log.error("Error waiting for Hello (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
@Override void processOFError(final SwitchChannelHandler h, final OFError m) throws IOException { h.log.error( "Error waiting for config reply (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); h.channel.disconnect(); }
public V6Error(OFError e) { this.length = (short)e.getLengthU(); this.errorType = e.getErrorType(); this.errorCode = e.getErrorCode(); this.xid = e.getXid(); }
case OFPET_HELLO_FAILED: OFHelloFailedCode hfc = OFHelloFailedCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, hfc); case OFPET_BAD_REQUEST: OFBadRequestCode brc = OFBadRequestCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, brc); case OFPET_BAD_ACTION: OFBadActionCode bac = OFBadActionCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, bac); case OFPET_FLOW_MOD_FAILED: OFFlowModFailedCode fmfc = OFFlowModFailedCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, fmfc); case OFPET_PORT_MOD_FAILED: OFPortModFailedCode pmfc = OFPortModFailedCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, pmfc); case OFPET_QUEUE_OP_FAILED: OFQueueOpFailedCode qofc = OFQueueOpFailedCode.values()[0xffff & error .getErrorCode()]; return String.format("Error %s %s", et, qofc); case OFPET_VENDOR_ERROR:
public V6Error(OFError e) { this.length = (short)e.getLengthU(); this.errorType = e.getErrorType(); this.errorCode = e.getErrorCode(); this.xid = e.getXid(); }
case OFPET_HELLO_FAILED: OFHelloFailedCode hfc = OFHelloFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + hfc.toString(); break; case OFPET_BAD_REQUEST: OFBadRequestCode brc = OFBadRequestCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + brc.toString(); break; case OFPET_BAD_ACTION: OFBadActionCode bac = OFBadActionCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + bac.toString(); break; case OFPET_FLOW_MOD_FAILED: OFFlowModFailedCode fmfc = OFFlowModFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + fmfc.toString(); break; case OFPET_PORT_MOD_FAILED: OFPortModFailedCode pmfc = OFPortModFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + pmfc.toString(); break; case OFPET_QUEUE_OP_FAILED: OFQueueOpFailedCode qofc = OFQueueOpFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + qofc.toString();
case OFPET_HELLO_FAILED: OFHelloFailedCode hfc = OFHelloFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + hfc.toString(); break; case OFPET_BAD_REQUEST: OFBadRequestCode brc = OFBadRequestCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + brc.toString(); break; case OFPET_BAD_ACTION: OFBadActionCode bac = OFBadActionCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + bac.toString(); break; case OFPET_FLOW_MOD_FAILED: OFFlowModFailedCode fmfc = OFFlowModFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + fmfc.toString(); break; case OFPET_PORT_MOD_FAILED: OFPortModFailedCode pmfc = OFPortModFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + pmfc.toString(); break; case OFPET_QUEUE_OP_FAILED: OFQueueOpFailedCode qofc = OFQueueOpFailedCode.values()[0xffff & error .getErrorCode()]; errorStr += " " + qofc.toString();
@Override void processOFError(final SwitchChannelHandler h, final OFError m) { try { if (m.getOffendingMsg().getType() != OFType.BARRIER_REQUEST) { h.log.error( "Error waiting for features (type:{}, code:{})", m.getErrorType(), m.getErrorCode()); if (h.channel.isOpen()) { h.channel.close(); } } else { h.log.warn( "Barrier Request message not understood by switch {}; " + "if it's an HP switch you are probably ok.", HexString.toHexString(h.featuresReply .getDatapathId())); } } catch (MessageParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } }