Class RedirectIpv6EcHandler
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.extended.communities.RedirectIpv6EcHandler
- All Implemented Interfaces:
ExtendedCommunityParser
,ExtendedCommunitySerializer
public final class RedirectIpv6EcHandler
extends Object
implements ExtendedCommunityParser, ExtendedCommunitySerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Provides a sub-type of the extended community for which the serializer is registered.int
getType
(boolean isTransitive) Provides a type of the extended community for which the serializer is registered.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.
-
Constructor Details
-
RedirectIpv6EcHandler
public RedirectIpv6EcHandler()
-
-
Method Details
-
serializeExtendedCommunity
public void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator) Description copied from interface:ExtendedCommunitySerializer
Serializes Extended Community value to the buffer.- Specified by:
serializeExtendedCommunity
in interfaceExtendedCommunitySerializer
- Parameters:
extendedCommunity
- ExtendedCommuity to be encoded.byteAggregator
- The output buffer where the extended community is written.
-
getType
public int getType(boolean isTransitive) Description copied from interface:ExtendedCommunitySerializer
Provides a type of the extended community for which the serializer is registered.- Specified by:
getType
in interfaceExtendedCommunitySerializer
- Parameters:
isTransitive
- Transitivity of the extended community.- Returns:
- A type of the extended community.
-
getSubType
public int getSubType()Description copied from interface:ExtendedCommunitySerializer
Provides a sub-type of the extended community for which the serializer is registered.- Specified by:
getSubType
in interfaceExtendedCommunitySerializer
- Returns:
- A sub-type of the extended community.
-
parseExtendedCommunity
Description copied from interface:ExtendedCommunityParser
Parses the Extended Community value encoded in the buffer.- Specified by:
parseExtendedCommunity
in interfaceExtendedCommunityParser
- Parameters:
buffer
- ByteBuf- Returns:
- Decoded Extended Community value.
-