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 TypeMethodDescriptiondefault 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
Parse Next hop from buffer.- Parameters:
buffer
- Encoded Next Hop in ByteBuf.- Returns:
- CNextHop
- Throws:
BGPParsingException
-
serializeNextHop
Serialize Next Hop.- Parameters:
cnextHop
- Next Hop containerbyteAggregator
- return Encoded Next Hop in ByteBuf
-