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