@Test public void testNeighborList() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(helloL1L2); helloPdu.readFrom(channelBuffer); resultListMac = helloPdu.neighborList(); assertThat(resultListMac, is(nullValue())); }
public List<MacAddress> neighborList() { List<MacAddress> macAddresses = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof IsisNeighborTlv) { macAddresses = ((IsisNeighborTlv) tlv).neighbor(); } } return macAddresses; }
HelloPdu extends IsisHeader { public List<MacAddress> neighborList() { List<MacAddress> macAddresses = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof IsisNeighborTlv) { macAddresses = ((IsisNeighborTlv) tlv).neighbor(); } } return macAddresses; } }
HelloPdu extends IsisHeader { public List<MacAddress> neighborList() { List<MacAddress> macAddresses = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof IsisNeighborTlv) { macAddresses = ((IsisNeighborTlv) tlv).neighbor(); } } return macAddresses; }  }
HelloPdu extends IsisHeader { public List<MacAddress> neighborList() { List<MacAddress> macAddresses = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof IsisNeighborTlv) { macAddresses = ((IsisNeighborTlv) tlv).neighbor(); } } return macAddresses; }  void addTlv(IsisTlv isisTlv); List<IsisTlv> tlvs(); List<String> areaAddress(); List<Ip4Address> interfaceIpAddresses(); List<MacAddress> neighborList(); IsisInterfaceState adjacencyState(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); int holdingTime(); void setHoldingTime(int holdingTime); byte circuitType(); void setCircuitType(byte circuitType); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
HelloPdu extends IsisHeader { public List<MacAddress> neighborList() { List<MacAddress> macAddresses = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof IsisNeighborTlv) { macAddresses = ((IsisNeighborTlv) tlv).neighbor(); } } return macAddresses; }  void addTlv(IsisTlv isisTlv); List<IsisTlv> tlvs(); List<String> areaAddress(); List<Ip4Address> interfaceIpAddresses(); List<MacAddress> neighborList(); IsisInterfaceState adjacencyState(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); int holdingTime(); void setHoldingTime(int holdingTime); byte circuitType(); void setCircuitType(byte circuitType); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }