use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.tables.Attributes in project bgpcep by opendaylight.
the class EvpnRibSupportTest method testBuildMpReachNlriUpdate.
@Test
public void testBuildMpReachNlriUpdate() {
final Update update = RIB_SUPPORT.buildUpdate(createRoutes(EVPN_ROUTES), Collections.emptyList(), ATTRIBUTES);
assertEquals(REACH_NLRI, update.getAttributes().getAugmentation(Attributes1.class).getMpReachNlri().getAdvertizedRoutes().getDestinationType());
assertNull(update.getAttributes().getAugmentation(Attributes2.class));
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.tables.Attributes in project bgpcep by opendaylight.
the class PMSITunnelAttributeHandlerTest method serializePimSSMTree.
@Test
public void serializePimSSMTree() throws Exception {
final Attributes attributes = buildPimSSMTreeAttribute();
final ByteBuf actual = Unpooled.buffer();
this.handler.serializeAttribute(attributes, actual);
assertArrayEquals(PIM_SSM_TREE_EXPECTED, ByteArray.readAllBytes(actual));
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.tables.Attributes in project bgpcep by opendaylight.
the class PMSITunnelAttributeHandlerTest method testIngressReplication.
@Test
public void testIngressReplication() throws Exception {
final Attributes expected = buildIngressReplicationAttribute();
final ByteBuf actual = Unpooled.buffer();
this.handler.serializeAttribute(expected, actual);
assertArrayEquals(INGRESS_REPLICATION_EXPECTED, ByteArray.readAllBytes(actual));
final Attributes actualAttr = this.handler.parseAttributes(Unpooled.wrappedBuffer(INGRESS_REPLICATION_EXPECTED), null);
assertEquals(expected, actualAttr);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.tables.Attributes in project bgpcep by opendaylight.
the class PMSITunnelAttributeHandlerTest method serializeNoTunnelInfPresentExpected.
@Test
public void serializeNoTunnelInfPresentExpected() throws Exception {
final Attributes attributes = buildWOTunnelInfAttribute();
final ByteBuf actual = Unpooled.buffer();
this.handler.serializeAttribute(attributes, actual);
assertArrayEquals(NO_TUNNEL_INFORMATION_PRESENT_EXPECTED, ByteArray.readAllBytes(actual));
final Attributes expected = buildWOTunnelInfAttribute();
final Attributes actualAttr = this.handler.parseAttributes(Unpooled.wrappedBuffer(NO_TUNNEL_INFORMATION_PRESENT_EXPECTED), null);
assertEquals(expected, actualAttr);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev171207.rib.tables.Attributes in project bgpcep by opendaylight.
the class PMSITunnelAttributeHandlerTest method testBidirPimTree.
@Test
public void testBidirPimTree() throws Exception {
final Attributes attributes = buildBidirPimTreeAttribute();
final ByteBuf actual = Unpooled.buffer();
this.handler.serializeAttribute(attributes, actual);
assertArrayEquals(BIDIR_PIM_EXPECTED, ByteArray.readAllBytes(actual));
final Attributes expected = buildBidirPimTreeAttribute();
final Attributes actualAttr = this.handler.parseAttributes(Unpooled.wrappedBuffer(BIDIR_PIM_EXPECTED), null);
assertEquals(expected, actualAttr);
}
Aggregations