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();
}
Aggregations