Class AbstractVpnNextHopParserSerializer
java.lang.Object
org.opendaylight.protocol.bgp.l3vpn.unicast.AbstractVpnNextHopParserSerializer
- All Implemented Interfaces:
NextHopParserSerializer
- Direct Known Subclasses:
VpnIpv4NextHopParserSerializer
,VpnIpv6NextHopParserSerializer
public abstract class AbstractVpnNextHopParserSerializer
extends Object
implements NextHopParserSerializer
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractVpnNextHopParserSerializer
(int ipAddrLength, Class<?> ipNextHopCaseClazz) -
Method Summary
Modifier and TypeMethodDescriptionparseNextHop
(io.netty.buffer.ByteBuf buffer) Parse Next hop from buffer.void
serializeNextHop
(CNextHop nextHop, io.netty.buffer.ByteBuf byteAggregator) Serialize Next Hop.
-
Constructor Details
-
AbstractVpnNextHopParserSerializer
-
-
Method Details
-
parseNextHop
Description copied from interface:NextHopParserSerializer
Parse Next hop from buffer.- Specified by:
parseNextHop
in interfaceNextHopParserSerializer
- Parameters:
buffer
- Encoded Next Hop in ByteBuf.- Returns:
- CNextHop
- Throws:
BGPParsingException
-
serializeNextHop
Description copied from interface:NextHopParserSerializer
Serialize Next Hop.- Specified by:
serializeNextHop
in interfaceNextHopParserSerializer
- Parameters:
nextHop
- Next Hop containerbyteAggregator
- return Encoded Next Hop in ByteBuf
-