Search in sources :

Example 1 with BgpAggregator

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.BgpAggregator in project bgpcep by opendaylight.

the class ComplementaryTest method testBGPAggregatorImpl.

@Test
public void testBGPAggregatorImpl() {
    final BgpAggregator ipv4 = new AggregatorBuilder().setAsNumber(new AsNumber(Uint32.valueOf(5524))).setNetworkAddress(new Ipv4AddressNoZone("124.55.42.1")).build();
    final BgpAggregator ipv4i = new AggregatorBuilder().setAsNumber(new AsNumber(Uint32.valueOf(5525))).setNetworkAddress(new Ipv4AddressNoZone("124.55.42.1")).build();
    assertNotSame(ipv4.hashCode(), ipv4i.hashCode());
    assertNotSame(ipv4.getAsNumber(), ipv4i.getAsNumber());
    assertEquals(ipv4.getNetworkAddress(), ipv4i.getNetworkAddress());
}
Also used : BgpAggregator(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.BgpAggregator) Ipv4AddressNoZone(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone) AggregatorBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.path.attributes.attributes.AggregatorBuilder) AsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 AsNumber (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber)1 Ipv4AddressNoZone (org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone)1 AggregatorBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.path.attributes.attributes.AggregatorBuilder)1 BgpAggregator (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.BgpAggregator)1