Search in sources :

Example 1 with InterAsIPmsiAD

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;
}
Also used : InterAsIPmsiAD(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mvpn.rev200120.inter.as.i.pmsi.a.d.grouping.InterAsIPmsiAD) ByteBuf(io.netty.buffer.ByteBuf)

Aggregations

ByteBuf (io.netty.buffer.ByteBuf)1 InterAsIPmsiAD (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mvpn.rev200120.inter.as.i.pmsi.a.d.grouping.InterAsIPmsiAD)1