Interface NextHopParserSerializer

All Known Implementing Classes:
AbstractVpnNextHopParserSerializer, Ipv4NextHopParserSerializer, Ipv6NextHopParserSerializer, VpnIpv4NextHopParserSerializer, VpnIpv6NextHopParserSerializer

@NonNullByDefault public interface NextHopParserSerializer
Handles Next Hop, by default use NextHopUtil which is handles Ipv4 and Ipv6 Next hop.
  • Method Summary

    Modifier and Type
    Method
    Description
    default CNextHop
    parseNextHop(io.netty.buffer.ByteBuf buffer)
    Parse Next hop from buffer.
    default void
    serializeNextHop(CNextHop cnextHop, io.netty.buffer.ByteBuf byteAggregator)
    Serialize Next Hop.
  • Method Details

    • parseNextHop

      default CNextHop parseNextHop(io.netty.buffer.ByteBuf buffer) throws BGPParsingException
      Parse Next hop from buffer.
      Parameters:
      buffer - Encoded Next Hop in ByteBuf.
      Returns:
      CNextHop
      Throws:
      BGPParsingException
    • serializeNextHop

      default void serializeNextHop(CNextHop cnextHop, io.netty.buffer.ByteBuf byteAggregator)
      Serialize Next Hop.
      Parameters:
      cnextHop - Next Hop container
      byteAggregator - return Encoded Next Hop in ByteBuf