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
Constructors Modifier Constructor Description protected
AbstractVpnNextHopParserSerializer(int ipAddrLength, Class<?> ipNextHopCaseClazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CNextHop
parseNextHop(io.netty.buffer.ByteBuf buffer)
Parse Next hop from buffer.void
serializeNextHop(CNextHop nextHop, io.netty.buffer.ByteBuf byteAggregator)
Serialize Next Hop.
-
-
-
Constructor Detail
-
AbstractVpnNextHopParserSerializer
protected AbstractVpnNextHopParserSerializer(int ipAddrLength, Class<?> ipNextHopCaseClazz)
-
-
Method Detail
-
parseNextHop
public CNextHop parseNextHop(io.netty.buffer.ByteBuf buffer) throws BGPParsingException
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
public void serializeNextHop(CNextHop nextHop, io.netty.buffer.ByteBuf byteAggregator)
Description copied from interface:NextHopParserSerializer
Serialize Next Hop.- Specified by:
serializeNextHop
in interfaceNextHopParserSerializer
- Parameters:
nextHop
- Next Hop containerbyteAggregator
- return Encoded Next Hop in ByteBuf
-
-