Class Ipv6BgpPrefixSidParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.inet.codec.Ipv6BgpPrefixSidParser
-
- All Implemented Interfaces:
BgpPrefixSidTlvParser
,BgpPrefixSidTlvSerializer
public final class Ipv6BgpPrefixSidParser extends Object implements BgpPrefixSidTlvParser, BgpPrefixSidTlvSerializer
-
-
Constructor Summary
Constructors Constructor Description Ipv6BgpPrefixSidParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
Ipv6SidTlv
parseBgpPrefixSidTlv(io.netty.buffer.ByteBuf buffer)
Method for parsing specific types of TLVs from incoming buffer.void
serializeBgpPrefixSidTlv(BgpPrefixSidTlv tlv, io.netty.buffer.ByteBuf bytes)
Method for serializing specific types of TLVs from incoming buffer.
-
-
-
Method Detail
-
serializeBgpPrefixSidTlv
public void serializeBgpPrefixSidTlv(BgpPrefixSidTlv tlv, io.netty.buffer.ByteBuf bytes)
Description copied from interface:BgpPrefixSidTlvSerializer
Method for serializing specific types of TLVs from incoming buffer.- Specified by:
serializeBgpPrefixSidTlv
in interfaceBgpPrefixSidTlvSerializer
- Parameters:
tlv
- instancebytes
- outcome serialized TLV
-
parseBgpPrefixSidTlv
public Ipv6SidTlv parseBgpPrefixSidTlv(io.netty.buffer.ByteBuf buffer)
Description copied from interface:BgpPrefixSidTlvParser
Method for parsing specific types of TLVs from incoming buffer.- Specified by:
parseBgpPrefixSidTlv
in interfaceBgpPrefixSidTlvParser
- Parameters:
buffer
- with TLV bytes- Returns:
- instance of specific TLV
-
getType
public int getType()
- Specified by:
getType
in interfaceBgpPrefixSidTlvSerializer
-
-