Search in sources :

Example 6 with LispIpv6Address

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));
}
Also used : LispIpv6Address(org.onosproject.lisp.msg.types.LispIpv6Address) LispIpv4Address(org.onosproject.lisp.msg.types.LispIpv4Address) LispAfiAddress(org.onosproject.lisp.msg.types.LispAfiAddress) Test(org.junit.Test)

Aggregations

LispIpv4Address (org.onosproject.lisp.msg.types.LispIpv4Address)6 LispIpv6Address (org.onosproject.lisp.msg.types.LispIpv6Address)6 LispAfiAddress (org.onosproject.lisp.msg.types.LispAfiAddress)4 IpAddress (org.onlab.packet.IpAddress)3 IpPrefix (org.onlab.packet.IpPrefix)2 UnknownHostException (java.net.UnknownHostException)1 Before (org.junit.Before)1 Test (org.junit.Test)1 DefaultInfoReplyBuilder (org.onosproject.lisp.msg.protocols.DefaultLispInfoReply.DefaultInfoReplyBuilder)1 LispInfoReply (org.onosproject.lisp.msg.protocols.LispInfoReply)1 InfoReplyBuilder (org.onosproject.lisp.msg.protocols.LispInfoReply.InfoReplyBuilder)1 LispInfoRequest (org.onosproject.lisp.msg.protocols.LispInfoRequest)1 LispNoAddress (org.onosproject.lisp.msg.types.LispNoAddress)1 LispAppDataLcafAddress (org.onosproject.lisp.msg.types.lcaf.LispAppDataLcafAddress)1 LispLcafAddress (org.onosproject.lisp.msg.types.lcaf.LispLcafAddress)1 LispListLcafAddress (org.onosproject.lisp.msg.types.lcaf.LispListLcafAddress)1 LispMulticastLcafAddress (org.onosproject.lisp.msg.types.lcaf.LispMulticastLcafAddress)1 NatAddressBuilder (org.onosproject.lisp.msg.types.lcaf.LispNatLcafAddress.NatAddressBuilder)1 LispTeLcafAddress (org.onosproject.lisp.msg.types.lcaf.LispTeLcafAddress)1 LispTeRecord (org.onosproject.lisp.msg.types.lcaf.LispTeRecord)1