Interface ExtendedCommunityRegistry


public interface ExtendedCommunityRegistry
The Extended Communities registry.
  • Method Details

    • parseExtendedCommunity

      ExtendedCommunities parseExtendedCommunity(io.netty.buffer.ByteBuf buffer) throws BGPDocumentedException, BGPParsingException
      Parses the Extended Community.
      Parameters:
      buffer - ByteBuf
      Returns:
      Decoded ExtendedCommunity or null if the parser for such Extended Community type/sub-type is not present.
      Throws:
      BGPDocumentedException
      BGPParsingException
    • serializeExtendedCommunity

      void serializeExtendedCommunity(ExtendedCommunities extendedCommunity, io.netty.buffer.ByteBuf byteAggregator)
      Serializes the Extended Community.
      Parameters:
      extendedCommunity - ExtendedCommunity to be encoded.
      byteAggregator - ByteBuf, where the Extended Community is serialized, if a serialized is not present for such Extended Community type, no bytes are written into output buffer.