use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.bidir.pim.tree.BidirPimTreeBuilder in project bgpcep by opendaylight.
the class PMSITunnelAttributeHandlerTestUtil method buildBidirPimTreeAttribute.
static Attributes buildBidirPimTreeAttribute() {
final PmsiTunnelBuilder pmsiTunnelBuilder = getPmsiTunnelBuilder();
pmsiTunnelBuilder.setTunnelIdentifier(new BidirPimTreeBuilder().setBidirPimTree(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.bidir.pim.tree.BidirPimTreeBuilder(buildPAddressPMulticastGroup()).build()).build());
return buildAttribute(pmsiTunnelBuilder);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.bidir.pim.tree.BidirPimTreeBuilder in project bgpcep by opendaylight.
the class PAddressPMulticastGroupUtil method parseSenderPMulticastGroup.
static PAddressPMulticastGroup parseSenderPMulticastGroup(final ByteBuf buffer) {
final int ipLength = buffer.readableBytes() / 2;
final IpAddress pSenderAddress = parseIpAddress(ipLength, buffer);
final IpAddress pMulticastGroup = parseIpAddress(ipLength, buffer);
return new BidirPimTreeBuilder().setPAddress(pSenderAddress).setPMulticastGroup(pMulticastGroup).build();
}
Aggregations