Interface ExtendedCommunitySerializer
- All Known Implementing Classes:
Abstract4OctetAsExtendedCommunity
,AbstractIpv4ExtendedCommunity
,AbstractOpaqueExtendedCommunity
,AbstractTwoOctetAsExtendedCommunity
,AsTwoOctetSpecificEcHandler
,DefaultGatewayExtCom
,EncapsulationEC
,ESILabelExtCom
,ESImpRouteTargetExtCom
,Generic4OctASEcHandler
,Ipv4SpecificEcHandler
,Layer2AttributesExtCom
,LinkBandwidthEC
,MACMobExtCom
,OpaqueEcHandler
,RedirectAsFourOctetEcHandler
,RedirectAsTwoOctetEcHandler
,RedirectIpNextHopEcHandler
,RedirectIpv4EcHandler
,RedirectIpv6EcHandler
,RouteOrigin4OctectASEcHandler
,RouteOriginAsTwoOctetEcHandler
,RouteOriginIpv4EcHandler
,RouteTarget4OctectASEcHandler
,RouteTargetAsTwoOctetEcHandler
,RouteTargetIpv4EcHandler
,SourceAS4OctectHandler
,SourceASHandler
,TrafficActionEcHandler
,TrafficMarkingEcHandler
,TrafficRateEcHandler
,VrfRouteImportHandler
public interface ExtendedCommunitySerializer
The Extended Community serializer (ExtendedCommunity to ByteBuf).
-
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.void
serializeExtendedCommunity
(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator) Serializes Extended Community value to the buffer.
-
Method Details
-
serializeExtendedCommunity
void serializeExtendedCommunity(ExtendedCommunity extendedCommunity, io.netty.buffer.ByteBuf byteAggregator) Serializes Extended Community value to the buffer.- Parameters:
extendedCommunity
- ExtendedCommuity to be encoded.byteAggregator
- The output buffer where the extended community is written.
-
getType
int getType(boolean isTransitive) Provides a type of the extended community for which the serializer is registered.- Parameters:
isTransitive
- Transitivity of the extended community.- Returns:
- A type of the extended community.
-
getSubType
int getSubType()Provides a sub-type of the extended community for which the serializer is registered.- Returns:
- A sub-type of the extended community.
-