Package org.opendaylight.bgp.concepts
Class NextHopUtil
java.lang.Object
org.opendaylight.bgp.concepts.NextHopUtil
Utility class for of CNextHop serialization and parsing.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CNextHopparseNextHop(io.netty.buffer.ByteBuf buffer) Parses CNextHop IP address from given ByteBuf.static CNextHopparseNextHopFullIpv6(io.netty.buffer.ByteBuf buffer) Parses CNextHop IPv6 global+local address from given ByteBuf, which has already been checked for size.static CNextHopparseNextHopIpv4(io.netty.buffer.ByteBuf buffer) Parses CNextHop IPv4 address from given ByteBuf, which has already been checked for size.static CNextHopparseNextHopIpv6(io.netty.buffer.ByteBuf buffer) Parses CNextHop IPv6 global address from given ByteBuf, which has already been checked for size.static voidserializeNextHop(CNextHop cnextHop, io.netty.buffer.ByteBuf byteAggregator) Writes serialized cnextHop IP address as byte value into ByteBuf.
-
Method Details
-
serializeNextHop
Writes serialized cnextHop IP address as byte value into ByteBuf.- Parameters:
cnextHop- next hop to be serializedbyteAggregator- where the next hop will be written
-
parseNextHop
Parses CNextHop IP address from given ByteBuf.- Parameters:
buffer- contains byte array representation of CNextHop- Returns:
- CNexthop object
-
parseNextHopIpv4
Parses CNextHop IPv4 address from given ByteBuf, which has already been checked for size.- Parameters:
buffer- contains byte array representation of CNextHop- Returns:
- CNexthop object
-
parseNextHopIpv6
Parses CNextHop IPv6 global address from given ByteBuf, which has already been checked for size.- Parameters:
buffer- contains byte array representation of CNextHop- Returns:
- CNexthop object
-
parseNextHopFullIpv6
Parses CNextHop IPv6 global+local address from given ByteBuf, which has already been checked for size.- Parameters:
buffer- contains byte array representation of CNextHop- Returns:
- CNexthop object
-