@Test public void testAsBytes() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(tlv); ipExtendedReachabilityTlv.readFrom(channelBuffer); ipExtendedReachabilityTlv.setPrefix(prefix); result3 = ipExtendedReachabilityTlv.asBytes(); assertThat(result3, is(notNullValue())); }
@Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; }
IpExtendedReachabilityTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } }
IpExtendedReachabilityTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } IpExtendedReachabilityTlv(TlvHeader tlvHeader); }
IpExtendedReachabilityTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } IpExtendedReachabilityTlv(TlvHeader tlvHeader); List<TrafficEngineeringSubTlv> teTlvs(); String prefix(); void setPrefix(String prefix); boolean isDown(); void setDown(boolean upOrDown); boolean isSubTlvPresence(); void setSubTlvPresence(boolean subTlvPresence); int prefixLength(); void setPrefixLength(int prefixLength); void addSubTlv(TrafficEngineeringSubTlv trafEnginSubTlv); byte subTlvLength(); void setSubTlvLength(byte subTlvLength); int metric(); void setMetric(int metric); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString(); }
IpExtendedReachabilityTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } IpExtendedReachabilityTlv(TlvHeader tlvHeader); List<TrafficEngineeringSubTlv> teTlvs(); String prefix(); void setPrefix(String prefix); boolean isDown(); void setDown(boolean upOrDown); boolean isSubTlvPresence(); void setSubTlvPresence(boolean subTlvPresence); int prefixLength(); void setPrefixLength(int prefixLength); void addSubTlv(TrafficEngineeringSubTlv trafEnginSubTlv); byte subTlvLength(); void setSubTlvLength(byte subTlvLength); int metric(); void setMetric(int metric); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString();  }