@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(); }
public V6Error(OFError e) { this.length = (short)e.getLengthU(); this.errorType = e.getErrorType(); this.errorCode = e.getErrorCode(); this.xid = e.getXid(); }
@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(); } }
int etint = 0xffff & error.getErrorType(); if (etint < 0 || etint >= OFErrorType.values().length) { return String.format("Unknown error type %d", etint);
static String getOFErrorString(OFError error) { if (error.getErrorType() == V6Error.NICIRA_VENDOR_ERRORTYPE) { V6Error er = new V6Error(error); byte[] b = error.getError(); OFErrorType et = OFErrorType.values()[0xffff & error.getErrorType()]; String errorStr = "Error : " + et.toString(); switch (et) {
public static String getOFErrorString(OFError error) { if (error.getErrorType() == V6Error.NICIRA_VENDOR_ERRORTYPE) { V6Error er = new V6Error(error); byte[] b = error.getError(); OFErrorType et = OFErrorType.values()[0xffff & error.getErrorType()]; String errorStr = "Error : " + et.toString(); switch (et) {