Search in sources :

Example 1 with RsvpTeP2mpLpsBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.rsvp.te.p2mp.lsp.RsvpTeP2mpLpsBuilder in project bgpcep by opendaylight.

the class RsvpTeP2MpLspParser method parse.

@Override
public TunnelIdentifier parse(final ByteBuf buffer) {
    final RsvpTeP2mpLpsBuilder rsvpTeP2mpLps = new RsvpTeP2mpLpsBuilder();
    rsvpTeP2mpLps.setP2mpId(buffer.readUnsignedInt());
    buffer.skipBytes(2);
    rsvpTeP2mpLps.setTunnelId(buffer.readUnsignedShort());
    final int ipLength = buffer.readableBytes();
    rsvpTeP2mpLps.setExtendedTunnelId(parseIpAddress(ipLength, buffer));
    return new RsvpTeP2mpLspBuilder().setRsvpTeP2mpLps(rsvpTeP2mpLps.build()).build();
}
Also used : RsvpTeP2mpLspBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.RsvpTeP2mpLspBuilder) RsvpTeP2mpLpsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.rsvp.te.p2mp.lsp.RsvpTeP2mpLpsBuilder)

Aggregations

RsvpTeP2mpLspBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.RsvpTeP2mpLspBuilder)1 RsvpTeP2mpLpsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pmsi.tunnel.rev160812.pmsi.tunnel.pmsi.tunnel.tunnel.identifier.rsvp.te.p2mp.lsp.RsvpTeP2mpLpsBuilder)1