Class MldpP2mpLspParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.spi.attributes.tunnel.identifier.AbstractTunnelIdentifier<MldpP2mpLsp>
-
- org.opendaylight.protocol.bgp.mvpn.impl.attributes.tunnel.identifier.MldpP2mpLspParser
-
- All Implemented Interfaces:
TunnelIdentifierParser<MldpP2mpLsp>
,TunnelIdentifierSerializer<MldpP2mpLsp>
public final class MldpP2mpLspParser extends AbstractTunnelIdentifier<MldpP2mpLsp>
-
-
Constructor Summary
Constructors Constructor Description MldpP2mpLspParser(AddressFamilyRegistry addressFamilyRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends TunnelIdentifier>
getClazz()
int
getType()
MldpP2mpLsp
parse(io.netty.buffer.ByteBuf buffer)
Parse Tunnel Identifier from buffer.int
serialize(MldpP2mpLsp tunnelIdentifier, io.netty.buffer.ByteBuf buffer)
Serialize tunnel identifier.
-
-
-
Constructor Detail
-
MldpP2mpLspParser
public MldpP2mpLspParser(AddressFamilyRegistry addressFamilyRegistry)
-
-
Method Detail
-
serialize
public int serialize(MldpP2mpLsp tunnelIdentifier, io.netty.buffer.ByteBuf buffer)
Description copied from interface:TunnelIdentifierSerializer
Serialize tunnel identifier.- Parameters:
tunnelIdentifier
- Tunnel Identifier bodybuffer
- Encoded Tunnel Identifier in ByteBuf- Returns:
- Tunnel identifier Type
-
getClazz
public Class<? extends TunnelIdentifier> getClazz()
-
getType
public int getType()
-
parse
public MldpP2mpLsp parse(io.netty.buffer.ByteBuf buffer)
Description copied from interface:TunnelIdentifierParser
Parse Tunnel Identifier from buffer.- Parameters:
buffer
- Encoded Tunnel Identifier in ByteBuf.- Returns:
- Parsed Tunnel Identifier body
-
-