Package org.opendaylight.bgp.concepts
Class IpAddressUtil
java.lang.Object
org.opendaylight.bgp.concepts.IpAddressUtil
Utility class for IpAddress models type(like Originator Route Ip) serialization and parsing.
- Author:
- Claudio D. Gasparini
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
addressForByteBuf
(io.netty.buffer.ByteBuf buffer) Returns IpAddress from byte array containing ipAddress lenght + ipAddress.static @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
addressForByteBufWOLength
(io.netty.buffer.ByteBuf buffer) Returns IpAddress from byte array containing ipAddress based on ByteArray length.static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone
extractIpAddress
(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid) static void
writeBytesFor
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone address, io.netty.buffer.ByteBuf output) Writes the length of anIpAddressNoZone
and its contents to specified buffer.
-
Method Details
-
addressForByteBuf
public static @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone addressForByteBuf(io.netty.buffer.ByteBuf buffer) Returns IpAddress from byte array containing ipAddress lenght + ipAddress.- Parameters:
buffer
- containing ip address- Returns:
- IpAddressNoZone
-
addressForByteBufWOLength
public static @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone addressForByteBufWOLength(io.netty.buffer.ByteBuf buffer) Returns IpAddress from byte array containing ipAddress based on ByteArray length.- Parameters:
buffer
- containing ip address- Returns:
- IpAddressNoZone
-
writeBytesFor
public static void writeBytesFor(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone address, io.netty.buffer.ByteBuf output) Writes the length of anIpAddressNoZone
and its contents to specified buffer.- Parameters:
address
- containing ipv4 or ipv6 addressoutput
- output buffer
-
extractIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone extractIpAddress(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)
-