Class Layer2AttributesExtCom
java.lang.Object
org.opendaylight.protocol.bgp.evpn.impl.extended.communities.Layer2AttributesExtCom
- All Implemented Interfaces:
ExtendedCommunityParser,ExtendedCommunitySerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintProvides a sub-type of the extended community for which the serializer is registered.final intgetType(boolean isTransitive) Provides a type of the extended community for which the serializer is registered.parseExtendedCommunity(io.netty.buffer.ByteBuf body) Parses the Extended Community value encoded in the buffer.voidserializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body) Serializes Extended Community value to the buffer.
-
Constructor Details
-
Layer2AttributesExtCom
public Layer2AttributesExtCom()
-
-
Method Details
-
parseExtendedCommunity
Description copied from interface:ExtendedCommunityParserParses the Extended Community value encoded in the buffer.- Parameters:
body- ByteBuf- Returns:
- Decoded Extended Community value.
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf body) Description copied from interface:ExtendedCommunitySerializerSerializes Extended Community value to the buffer.- Parameters:
extendedCommunity- ExtendedCommuity to be encoded.body- The output buffer where the extended community is written.
-
getSubType
public int getSubType()Description copied from interface:ExtendedCommunitySerializerProvides a sub-type of the extended community for which the serializer is registered.- Returns:
- A sub-type of the extended community.
-
getType
public final int getType(boolean isTransitive) Description copied from interface:ExtendedCommunitySerializerProvides a type of the extended community for which the serializer is registered.- Specified by:
getTypein interfaceExtendedCommunitySerializer- Parameters:
isTransitive- Transitivity of the extended community.- Returns:
- A type of the extended community.
-