@Test public void testL1l2HelloPduBody() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(helloL1L2); l1L2HelloPdu.readFrom(channelBuffer); result = l1L2HelloPdu.l1l2HelloPduBody(); assertThat(result, is(notNullValue())); }
public byte[] l1l2HelloPduBody() { List<Byte> bodyLst = new ArrayList<>(); bodyLst.add(this.circuitType()); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.holdingTime()))); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyLst.add(this.priority); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.lanId())); for (IsisTlv isisTlv : variableLengths) { bodyLst.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyLst); }
L1L2HelloPdu extends HelloPdu { public byte[] l1l2HelloPduBody() { List<Byte> bodyLst = new ArrayList<>(); bodyLst.add(this.circuitType()); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.holdingTime()))); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyLst.add(this.priority); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.lanId())); for (IsisTlv isisTlv : variableLengths) { bodyLst.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyLst); } }
L1L2HelloPdu extends HelloPdu { public byte[] l1l2HelloPduBody() { List<Byte> bodyLst = new ArrayList<>(); bodyLst.add(this.circuitType()); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.holdingTime()))); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyLst.add(this.priority); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.lanId())); for (IsisTlv isisTlv : variableLengths) { bodyLst.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyLst); } L1L2HelloPdu(IsisHeader isisHeader); }
L1L2HelloPdu extends HelloPdu { public byte[] l1l2HelloPduBody() { List<Byte> bodyLst = new ArrayList<>(); bodyLst.add(this.circuitType()); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.holdingTime()))); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyLst.add(this.priority); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.lanId())); for (IsisTlv isisTlv : variableLengths) { bodyLst.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyLst); } L1L2HelloPdu(IsisHeader isisHeader); String lanId(); void setLanId(String lanId); byte priority(); void setPriority(byte priority); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] l1l2IsisPduHeader(); byte[] l1l2HelloPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
L1L2HelloPdu extends HelloPdu { public byte[] l1l2HelloPduBody() { List<Byte> bodyLst = new ArrayList<>(); bodyLst.add(this.circuitType()); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.holdingTime()))); bodyLst.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyLst.add(this.priority); bodyLst.addAll(IsisUtil.sourceAndLanIdToBytes(this.lanId())); for (IsisTlv isisTlv : variableLengths) { bodyLst.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyLst); } L1L2HelloPdu(IsisHeader isisHeader); String lanId(); void setLanId(String lanId); byte priority(); void setPriority(byte priority); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] l1l2IsisPduHeader(); byte[] l1l2HelloPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }