use of org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.transport.address.TransportAddressBuilder in project lispflowmapping by opendaylight.
the class MapServerTest method getTransportAddressList.
private static List<TransportAddress> getTransportAddressList() {
TransportAddressBuilder transportAddressBuilder1 = new TransportAddressBuilder().setIpAddress(IPV4_BINARY_1).setPort(new PortNumber(LispMessage.PORT_NUM));
TransportAddressBuilder transportAddressBuilder2 = new TransportAddressBuilder().setIpAddress(IPV4_BINARY_2).setPort(new PortNumber(LispMessage.PORT_NUM));
final List<TransportAddress> transportAddressList = Lists.newArrayList(transportAddressBuilder1.build(), transportAddressBuilder2.build());
return transportAddressList;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.transport.address.TransportAddressBuilder in project lispflowmapping by opendaylight.
the class LispNotificationHelperTest method getTransportAddressFromRlocTest_withIpv4AddressBinary.
/**
* Tests {@link LispNotificationHelper#getTransportAddressFromRloc} method with Ipv4AddressBinary type address.
*/
@Test
public void getTransportAddressFromRlocTest_withIpv4AddressBinary() {
final TransportAddress result = new TransportAddressBuilder().setIpAddress(new IpAddressBinary(ADDRESS_IPV4_BINARY)).setPort(new PortNumber(LispMessage.PORT_NUM)).build();
assertEquals(result, LispNotificationHelper.getTransportAddressFromRloc(RLOC_IPV4_BINARY));
}
Aggregations