use of org.onosproject.lisp.msg.types.LispIpv6Address in project onos by opennetworkinglab.
the class LispListLcafAddressTest method testConstruction.
@Test
public void testConstruction() {
LispListLcafAddress listLcafAddress = address1;
LispAfiAddress ipv4Address1 = new LispIpv4Address(IpAddress.valueOf("192.168.1.1"));
LispAfiAddress ipv6Address1 = new LispIpv6Address(IpAddress.valueOf("1111:2222:3333:4444:5555:6666:7777:8885"));
List<LispAfiAddress> afiAddresses1 = Lists.newArrayList();
afiAddresses1.add(ipv4Address1);
afiAddresses1.add(ipv6Address1);
assertThat(listLcafAddress.getAddresses(), is(afiAddresses1));
}
Aggregations