Class RouteOriginAsTwoOctetEcHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.spi.extended.community.AbstractTwoOctetAsExtendedCommunity
-
- org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.RouteOriginAsTwoOctetEcHandler
-
- All Implemented Interfaces:
ExtendedCommunityParser
,ExtendedCommunitySerializer
public final class RouteOriginAsTwoOctetEcHandler extends AbstractTwoOctetAsExtendedCommunity
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.bgp.parser.spi.extended.community.AbstractTwoOctetAsExtendedCommunity
AS_LOCAL_ADMIN_LENGTH
-
-
Constructor Summary
Constructors Constructor Description RouteOriginAsTwoOctetEcHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSubType()
Provides a sub-type of the extended community for which the serializer is registered.ExtendedCommunity
parseExtendedCommunity(io.netty.buffer.ByteBuf buffer)
Parses the Extended Community value encoded in the buffer.void
serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator)
Serializes Extended Community value to the buffer.-
Methods inherited from class org.opendaylight.protocol.bgp.parser.spi.extended.community.AbstractTwoOctetAsExtendedCommunity
getType
-
-
-
-
Method Detail
-
parseExtendedCommunity
public ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException, BGPParsingException
Description copied from interface:ExtendedCommunityParser
Parses the Extended Community value encoded in the buffer.- Parameters:
buffer
- ByteBuf- Returns:
- Decoded Extended Community value.
- Throws:
BGPDocumentedException
BGPParsingException
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator)
Description copied from interface:ExtendedCommunitySerializer
Serializes Extended Community value to the buffer.- Parameters:
extendedCommunity
- ExtendedCommuity to be encoded.byteAggregator
- The output buffer where the extended community is written.
-
getSubType
public int getSubType()
Description copied from interface:ExtendedCommunitySerializer
Provides a sub-type of the extended community for which the serializer is registered.- Returns:
- A sub-type of the extended community.
-
-