Class LispAddressUtil
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.util.LispAddressUtil
-
public final class LispAddressUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
static short
STARTING_SERVICE_INDEX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IpAddressBinary
addressBinaryFromAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static IpAddressBinary
addressBinaryFromInet(java.net.InetAddress inetAddress)
Converts theInetAddress
into Ipv4 or Ipv6IpAddressBinary
.static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromDistinguishedName(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.DistinguishedNameType address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromInet(java.net.InetAddress address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromServicePath(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.service.path.ServicePath address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
addressFromSimpleAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
static boolean
addressNeedsConversionFromBinary(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static boolean
addressNeedsConversionToBinary(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily>
addressTypeFromInet(java.net.InetAddress address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily>
addressTypeFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily>
addressTypeFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily>
addressTypeFromSimpleAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
static Eid
asBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iid)
static Eid
asDistinguishedNameEid(java.lang.String address)
static Eid
asDistinguishedNameEid(java.lang.String address, long vni)
static Eid
asEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix
asIpPrefix(java.lang.String addr, int mask)
static Eid
asIpPrefixBinaryEid(Eid eid)
static Eid
asIpv4Eid(java.lang.String address)
static Eid
asIpv4Eid(java.lang.String address, long vni)
static Eid
asIpv4PrefixBinaryEid(long vni, byte[] address, short mask)
static Eid
asIpv4PrefixBinaryEid(long vni, java.lang.String prefix)
static Eid
asIpv4PrefixBinaryEid(java.lang.String prefix)
static Eid
asIpv4PrefixBinaryEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
static Eid
asIpv4PrefixBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni, byte[] address, short mask)
static Eid
asIpv4PrefixBinaryEid(Eid eid, byte[] address, short mask)
static Eid
asIpv4PrefixEid(java.lang.String prefix)
static Eid
asIpv4PrefixEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
static Eid
asIpv4PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address addr, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
asIpv4PrefixEid(Eid eid, java.net.Inet4Address address, short mask)
static Rloc
asIpv4Rloc(java.lang.String address)
static Eid
asIpv6Eid(java.lang.String address)
static Eid
asIpv6Eid(java.lang.String address, long vni)
static Eid
asIpv6PrefixBinaryEid(long vni, byte[] address, short mask)
static Eid
asIpv6PrefixBinaryEid(long vni, java.lang.String prefix)
static Eid
asIpv6PrefixBinaryEid(java.lang.String prefix)
static Eid
asIpv6PrefixBinaryEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
static Eid
asIpv6PrefixBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni, byte[] address, short mask)
static Eid
asIpv6PrefixBinaryEid(Eid eid, byte[] address, short mask)
static Eid
asIpv6PrefixEid(java.lang.String prefix)
static Eid
asIpv6PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address addr, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
asIpv6PrefixEid(Eid eid, java.net.Inet6Address address, short mask)
static Rloc
asIpv6Rloc(java.lang.String address)
static Rloc
asKeyValueAddress(java.lang.String key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
static Eid
asKeyValueAddressEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
static Rloc
asKeyValueAddressRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
static java.util.List<LocatorRecord>
asLocatorRecords(java.util.List<Rloc> locators)
static Eid
asMacEid(java.lang.String address)
static Eid
asMacEid(java.lang.String address, long vni)
static Eid
asServicePathEid(long vni, long servicePathId, short serviceIndex)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.source.dest.key.SourceDestKey
asSrcDst(java.lang.String src, java.lang.String dst, int smask, int dmask)
static Eid
asSrcDstEid(java.lang.String src, java.lang.String dst, int smask, int dmask, long vni)
static Eid
asSrcDstEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.source.dest.key.SourceDestKey sd, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Rloc
asTeLcafRloc(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> hopList)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
binaryAddressFromInet(java.net.InetAddress address)
static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address
binaryAddressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily>
binaryAddressTypeFromInet(java.net.InetAddress address)
static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.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
getNoAddressEid()
static byte[]
ipAddressToByteArray(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addr)
static int
ipVersionFromString(java.lang.String ip)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.DistinguishedNameType dn, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(Ipv4AddressBinary address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(Ipv6AddressBinary address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(Ipv4PrefixBinary prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
static Eid
toEid(Ipv6PrefixBinary prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.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(java.net.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
static Rloc
toRloc(Ipv4AddressBinary address)
static Rloc
toRloc(Ipv6AddressBinary address)
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
STARTING_SERVICE_INDEX
public static final short STARTING_SERVICE_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
addressTypeFromSimpleAddress
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> addressTypeFromSimpleAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
-
addressFromSimpleAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromSimpleAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
-
addressTypeFromInet
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> addressTypeFromInet(java.net.InetAddress address)
-
addressFromInet
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromInet(java.net.InetAddress address)
-
binaryAddressTypeFromInet
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> binaryAddressTypeFromInet(java.net.InetAddress address)
-
binaryAddressFromInet
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address binaryAddressFromInet(java.net.InetAddress address)
-
addressTypeFromIpAddress
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> addressTypeFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
-
binaryAddressTypeFromIpAddress
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> binaryAddressTypeFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
-
addressFromIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
-
binaryAddressFromIpAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address binaryAddressFromIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress address)
-
addressTypeFromIpPrefix
public static java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddressFamily> addressTypeFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address)
-
addressFromIpPrefix
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix address)
-
addressFromMacAddress
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address)
-
addressFromServicePath
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromServicePath(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.service.path.ServicePath address)
-
addressFromDistinguishedName
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromDistinguishedName(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.DistinguishedNameType address)
-
addressFromAsNumber
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addressFromAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber address)
-
toRloc
public static Rloc toRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
-
toRloc
public static Rloc toRloc(java.net.InetAddress address)
-
toRloc
public static Rloc toRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address)
-
toRloc
public static Rloc toRloc(Ipv4AddressBinary address)
-
toRloc
public static Rloc toRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address)
-
toRloc
public static Rloc toRloc(Ipv6AddressBinary address)
-
asIpv4Rloc
public static Rloc asIpv4Rloc(java.lang.String address)
-
asIpv6Rloc
public static Rloc asIpv6Rloc(java.lang.String address)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(Ipv4PrefixBinary prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(Ipv6PrefixBinary prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(Ipv4AddressBinary address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(Ipv6AddressBinary address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.DistinguishedNameType dn, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress mac, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
toEid
public static Eid toEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.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
public static Eid asEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
asIpv4PrefixEid
public static Eid asIpv4PrefixEid(java.lang.String prefix)
-
asIpv4PrefixEid
public static Eid asIpv4PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address addr, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
asIpv4PrefixEid
public static Eid asIpv4PrefixEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
-
asIpv4PrefixEid
public static Eid asIpv4PrefixEid(Eid eid, java.net.Inet4Address address, short mask)
-
asIpv4PrefixBinaryEid
public static Eid asIpv4PrefixBinaryEid(java.lang.String prefix)
-
asIpv4PrefixBinaryEid
public static Eid asIpv4PrefixBinaryEid(long vni, java.lang.String prefix)
-
asIpv4PrefixBinaryEid
public static Eid asIpv4PrefixBinaryEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
-
asIpv4PrefixBinaryEid
public static Eid asIpv4PrefixBinaryEid(long vni, byte[] address, short mask)
-
asIpv4PrefixBinaryEid
public static Eid asIpv4PrefixBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni, byte[] address, short mask)
-
asIpv4Eid
public static Eid asIpv4Eid(java.lang.String address)
-
asIpv4Eid
public static Eid asIpv4Eid(java.lang.String address, long vni)
-
asIpv6Eid
public static Eid asIpv6Eid(java.lang.String address)
-
asIpv6Eid
public static Eid asIpv6Eid(java.lang.String address, long vni)
-
asIpv6PrefixEid
public static Eid asIpv6PrefixEid(java.lang.String prefix)
-
asIpv6PrefixEid
public static Eid asIpv6PrefixEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address addr, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
asIpv6PrefixEid
public static Eid asIpv6PrefixEid(Eid eid, java.net.Inet6Address address, short mask)
-
asIpv6PrefixBinaryEid
public static Eid asIpv6PrefixBinaryEid(java.lang.String prefix)
-
asIpv6PrefixBinaryEid
public static Eid asIpv6PrefixBinaryEid(long vni, java.lang.String prefix)
-
asIpv6PrefixBinaryEid
public static Eid asIpv6PrefixBinaryEid(java.lang.String prefix, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iiType)
-
asIpv6PrefixBinaryEid
public static Eid asIpv6PrefixBinaryEid(long vni, byte[] address, short mask)
-
asIpv6PrefixBinaryEid
public static Eid asIpv6PrefixBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni, byte[] address, short mask)
-
asBinaryEid
public static Eid asBinaryEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType iid)
-
ipVersionFromString
public static int ipVersionFromString(java.lang.String ip)
-
asIpPrefix
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix asIpPrefix(java.lang.String addr, int mask)
-
asServicePathEid
public static Eid asServicePathEid(long vni, long servicePathId, short serviceIndex)
-
asMacEid
public static Eid asMacEid(java.lang.String address, long vni)
-
asMacEid
public static Eid asMacEid(java.lang.String address)
-
asDistinguishedNameEid
public static Eid asDistinguishedNameEid(java.lang.String address, long vni)
-
asDistinguishedNameEid
public static Eid asDistinguishedNameEid(java.lang.String address)
-
asKeyValueAddressEid
public static Eid asKeyValueAddressEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
-
asKeyValueAddressRloc
public static Rloc asKeyValueAddressRloc(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
-
asKeyValueAddress
public static Rloc asKeyValueAddress(java.lang.String key, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress value)
-
asSrcDst
public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.source.dest.key.SourceDestKey asSrcDst(java.lang.String src, java.lang.String dst, int smask, int dmask)
-
asSrcDstEid
public static Eid asSrcDstEid(java.lang.String src, java.lang.String dst, int smask, int dmask, long vni)
-
asSrcDstEid
public static Eid asSrcDstEid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.source.dest.key.SourceDestKey sd, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.InstanceIdType vni)
-
asTeLcafRloc
public static Rloc asTeLcafRloc(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> hopList)
-
asLocatorRecords
public static java.util.List<LocatorRecord> asLocatorRecords(java.util.List<Rloc> locators)
-
getNoAddressEid
public static Eid getNoAddressEid()
-
ipAddressToByteArray
public static byte[] ipAddressToByteArray(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address addr)
-
addressBinaryFromInet
public static IpAddressBinary addressBinaryFromInet(java.net.InetAddress inetAddress)
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
public static IpAddressBinary addressBinaryFromAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
addressNeedsConversionToBinary
public static boolean addressNeedsConversionToBinary(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
addressNeedsConversionFromBinary
public static boolean addressNeedsConversionFromBinary(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
compareIpAddressByteArrays
public static int compareIpAddressByteArrays(byte[] one, byte[] two)
-
getIpPrefixMask
public static short getIpPrefixMask(Eid eid)
-
-