use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mvpn.rev200120.inter.as.i.pmsi.a.d.grouping.InterAsIPmsiAD in project bgpcep by opendaylight.
the class InterASIPmsiADHandler method serializeBody.
@Override
protected ByteBuf serializeBody(final InterAsIPmsiADCase mvpn) {
final InterAsIPmsiAD route = mvpn.getInterAsIPmsiAD();
final ByteBuf nlriByteBuf = Unpooled.buffer();
RouteDistinguisherUtil.serializeRouteDistinquisher(route.getRouteDistinguisher(), nlriByteBuf);
nlriByteBuf.writeInt(route.getSourceAs().getValue().intValue());
return nlriByteBuf;
}
Aggregations