Class TrafficActionEcHandler

java.lang.Object
org.opendaylight.protocol.bgp.flowspec.extended.communities.TrafficActionEcHandler
All Implemented Interfaces:
ExtendedCommunityParser, ExtendedCommunitySerializer

public class TrafficActionEcHandler extends Object implements ExtendedCommunityParser, ExtendedCommunitySerializer
  • Constructor Details

    • TrafficActionEcHandler

      public TrafficActionEcHandler()
  • 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 interface ExtendedCommunitySerializer
      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 interface ExtendedCommunitySerializer
      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 interface ExtendedCommunitySerializer
      Returns:
      A sub-type of the extended community.
    • parseExtendedCommunity

      public ExtendedCommunity parseExtendedCommunity(io.netty.buffer.ByteBuf buffer)
      Description copied from interface: ExtendedCommunityParser
      Parses the Extended Community value encoded in the buffer.
      Specified by:
      parseExtendedCommunity in interface ExtendedCommunityParser
      Parameters:
      buffer - ByteBuf
      Returns:
      Decoded Extended Community value.