Search in sources :

Example 1 with NoAddress

use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddress in project lispflowmapping by opendaylight.

the class LispAddressUtilTest method getNoAddressEid.

/**
 * Tests {@link LispAddressUtil#getNoAddressEid()}  method.
 */
@Test
public void getNoAddressEid() {
    final Eid noAddressEid = LispAddressUtil.getNoAddressEid();
    assertEquals(NoAddressAfi.class, noAddressEid.getAddressType());
    assertNull(noAddressEid.getVirtualNetworkId());
    assertTrue(((NoAddress) noAddressEid.getAddress()).isNoAddress());
}
Also used : Eid(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Eid (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.eid.container.Eid)1