Class LispAddressUtil
java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.LispAddressUtil
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.slf4j.Logger
static final short
-
Method Summary
Modifier and TypeMethodDescriptionstatic IpAddressBinary
addressBinaryFromAddress
(Address address) static IpAddressBinary
addressBinaryFromInet
(InetAddress inetAddress) Converts theInetAddress
into Ipv4 or Ipv6IpAddressBinary
.static Address
addressFromAsNumber
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber address) static Address
static Address
addressFromInet
(InetAddress address) static Address
addressFromIpAddress
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) static Address
addressFromIpPrefix
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address) static Address
addressFromMacAddress
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address) static Address
addressFromServicePath
(ServicePath address) static Address
addressFromSimpleAddress
(SimpleAddress address) static boolean
addressNeedsConversionFromBinary
(Address address) static boolean
addressNeedsConversionToBinary
(Address address) static Class
<? extends LispAddressFamily> addressTypeFromInet
(InetAddress address) static LispAddressFamily
addressTypeFromIpAddress
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) static LispAddressFamily
addressTypeFromIpPrefix
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address) static LispAddressFamily
static Eid
asBinaryEid
(SimpleAddress address, InstanceIdType iid) static Eid
asDistinguishedNameEid
(String address) static Eid
asDistinguishedNameEid
(String address, long vni) static Eid
asEid
(SimpleAddress address, InstanceIdType vni) static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
asIpPrefix
(String addr, int mask) static Eid
asIpPrefixBinaryEid
(Eid eid) static Eid
static Eid
static Eid
asIpv4PrefixBinaryEid
(long vni, byte[] address, short mask) static Eid
asIpv4PrefixBinaryEid
(long vni, String prefix) static Eid
asIpv4PrefixBinaryEid
(String prefix) static Eid
asIpv4PrefixBinaryEid
(String prefix, InstanceIdType iiType) static Eid
asIpv4PrefixBinaryEid
(InstanceIdType vni, byte[] address, short mask) static Eid
asIpv4PrefixBinaryEid
(Eid eid, byte[] address, short mask) static Eid
asIpv4PrefixEid
(String prefix) static Eid
asIpv4PrefixEid
(String prefix, InstanceIdType iiType) static Eid
asIpv4PrefixEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address addr, InstanceIdType vni) static Eid
asIpv4PrefixEid
(Eid eid, Inet4Address address, short mask) static Rloc
asIpv4Rloc
(String address) static Eid
static Eid
static Eid
asIpv6PrefixBinaryEid
(long vni, byte[] address, short mask) static Eid
asIpv6PrefixBinaryEid
(long vni, String prefix) static Eid
asIpv6PrefixBinaryEid
(String prefix) static Eid
asIpv6PrefixBinaryEid
(String prefix, InstanceIdType iiType) static Eid
asIpv6PrefixBinaryEid
(InstanceIdType vni, byte[] address, short mask) static Eid
asIpv6PrefixBinaryEid
(Eid eid, byte[] address, short mask) static Eid
asIpv6PrefixEid
(String prefix) static Eid
asIpv6PrefixEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address addr, InstanceIdType vni) static Eid
asIpv6PrefixEid
(Eid eid, Inet6Address address, short mask) static Rloc
asIpv6Rloc
(String address) static Rloc
asKeyValueAddress
(String key, SimpleAddress value) static Eid
asKeyValueAddressEid
(SimpleAddress key, SimpleAddress value) static Rloc
asKeyValueAddressRloc
(SimpleAddress key, SimpleAddress value) static List
<LocatorRecord> asLocatorRecords
(List<Rloc> locators) static Eid
static Eid
static Eid
asServicePathEid
(long vni, long servicePathId, short serviceIndex) static SourceDestKey
static Eid
asSrcDstEid
(String src, String dst, int smask, int dmask, long vni) static Eid
asSrcDstEid
(SourceDestKey sd, InstanceIdType vni) static Rloc
asTeLcafRloc
(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> hopList) static Address
binaryAddressFromInet
(InetAddress address) static Address
binaryAddressFromIpAddress
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) static LispAddressFamily
binaryAddressTypeFromInet
(InetAddress address) static LispAddressFamily
binaryAddressTypeFromIpAddress
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) static int
compareIpAddressByteArrays
(byte[] one, byte[] two) static Eid
convertFromBinary
(Eid eid) static Rloc
convertFromBinary
(Rloc rloc) static Eid
convertToBinary
(Eid eid) static Rloc
convertToBinary
(Rloc rloc) static short
getIpPrefixMask
(Eid eid) static Eid
static byte[]
ipAddressToByteArray
(Address addr) static int
static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix, InstanceIdType vni) static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address, InstanceIdType vni) static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix, InstanceIdType vni) static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address, InstanceIdType vni) static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix, InstanceIdType vni) static Eid
toEid
(DistinguishedNameType dn, InstanceIdType vni) static Eid
toEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac, InstanceIdType vni) static Eid
toEid
(Ipv4AddressBinary address, InstanceIdType vni) static Eid
toEid
(Ipv6AddressBinary address, InstanceIdType vni) static Eid
toEid
(Ipv4PrefixBinary prefix, InstanceIdType vni) static Eid
toEid
(Ipv6PrefixBinary prefix, InstanceIdType vni) static Eid
toEidNoVni
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) static Eid
toIpPrefixEid
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress addr, int vni) static Rloc
toRloc
(InetAddress address) static Rloc
toRloc
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address) static Rloc
toRloc
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address) static Rloc
toRloc
(SimpleAddress address) static Rloc
toRloc
(Ipv4AddressBinary address) static Rloc
toRloc
(Ipv6AddressBinary address)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
STARTING_SERVICE_INDEX
public static final short STARTING_SERVICE_INDEX- See Also:
-
-
Method Details
-
addressTypeFromSimpleAddress
-
addressFromSimpleAddress
-
addressTypeFromInet
-
addressFromInet
-
binaryAddressTypeFromInet
-
binaryAddressFromInet
-
addressTypeFromIpAddress
public static LispAddressFamily addressTypeFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) -
binaryAddressTypeFromIpAddress
public static LispAddressFamily binaryAddressTypeFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) -
addressFromIpAddress
public static Address addressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) -
binaryAddressFromIpAddress
public static Address binaryAddressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address) -
addressTypeFromIpPrefix
public static LispAddressFamily addressTypeFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address) -
addressFromIpPrefix
public static Address addressFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address) -
addressFromMacAddress
public static Address addressFromMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address) -
addressFromServicePath
-
addressFromDistinguishedName
-
addressFromAsNumber
public static Address addressFromAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber address) -
toRloc
-
toRloc
-
toRloc
public static Rloc toRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address) -
toRloc
-
toRloc
public static Rloc toRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address) -
toRloc
-
asIpv4Rloc
-
asIpv6Rloc
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix, InstanceIdType vni) -
toEid
-
toEid
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address, InstanceIdType vni) -
toEid
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix, InstanceIdType vni) -
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address, InstanceIdType vni) -
toEid
-
toEid
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac, InstanceIdType vni) -
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix, InstanceIdType vni) -
toEidNoVni
public static Eid toEidNoVni(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) -
toIpPrefixEid
public static Eid toIpPrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress addr, int vni) -
asEid
-
asIpv4PrefixEid
-
asIpv4PrefixEid
public static Eid asIpv4PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address addr, InstanceIdType vni) -
asIpv4PrefixEid
-
asIpv4PrefixEid
-
asIpv4PrefixBinaryEid
-
asIpv4PrefixBinaryEid
-
asIpv4PrefixBinaryEid
-
asIpv4PrefixBinaryEid
-
asIpv4PrefixBinaryEid
-
asIpv4PrefixBinaryEid
-
asIpv4Eid
-
asIpv4Eid
-
asIpv6Eid
-
asIpv6Eid
-
asIpv6PrefixEid
-
asIpv6PrefixEid
public static Eid asIpv6PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address addr, InstanceIdType vni) -
asIpv6PrefixEid
-
asIpv6PrefixBinaryEid
-
asIpv6PrefixBinaryEid
-
asIpv6PrefixBinaryEid
-
asIpv6PrefixBinaryEid
-
asIpv6PrefixBinaryEid
-
asIpv6PrefixBinaryEid
-
asBinaryEid
-
asIpPrefixBinaryEid
-
ipVersionFromString
-
asIpPrefix
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix asIpPrefix(String addr, int mask) -
asServicePathEid
-
asMacEid
-
asMacEid
-
asDistinguishedNameEid
-
asDistinguishedNameEid
-
asKeyValueAddressEid
-
asKeyValueAddressRloc
-
asKeyValueAddress
-
asSrcDst
-
asSrcDstEid
-
asSrcDstEid
-
asTeLcafRloc
-
asLocatorRecords
-
getNoAddressEid
-
ipAddressToByteArray
-
convertToBinary
-
convertToBinary
-
addressBinaryFromInet
Converts theInetAddress
into Ipv4 or Ipv6IpAddressBinary
. If null parameter is passed, method returns the Ipv4 loopback address (127.0.0.1).- Parameters:
inetAddress
- Any Ipv4 or Ipv6 InetAddress.- Returns:
- The converted Ipv4 or Ipv6 IpAddressBinary, or Ipv4 loopback address (127.0.0.1) if null is passed.
-
addressBinaryFromAddress
-
convertFromBinary
-
convertFromBinary
-
addressNeedsConversionToBinary
-
addressNeedsConversionFromBinary
-
compareIpAddressByteArrays
public static int compareIpAddressByteArrays(byte[] one, byte[] two) -
getIpPrefixMask
-