Class LispAddressUtil

java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.LispAddressUtil

public final class LispAddressUtil extends Object
  • 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

      public static LispAddressFamily addressTypeFromSimpleAddress(SimpleAddress address)
    • addressFromSimpleAddress

      public static Address addressFromSimpleAddress(SimpleAddress address)
    • addressTypeFromInet

      public static Class<? extends LispAddressFamily> addressTypeFromInet(InetAddress address)
    • addressFromInet

      public static Address addressFromInet(InetAddress address)
    • binaryAddressTypeFromInet

      public static LispAddressFamily binaryAddressTypeFromInet(InetAddress address)
    • binaryAddressFromInet

      public static Address binaryAddressFromInet(InetAddress address)
    • 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

      public static Address addressFromServicePath(ServicePath address)
    • addressFromDistinguishedName

      public static Address addressFromDistinguishedName(DistinguishedNameType address)
    • addressFromAsNumber

      public static Address addressFromAsNumber(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber address)
    • toRloc

      public static Rloc toRloc(SimpleAddress address)
    • toRloc

      public static Rloc toRloc(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(String address)
    • asIpv6Rloc

      public static Rloc asIpv6Rloc(String address)
    • 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

      public static Eid toEid(Ipv4PrefixBinary prefix, InstanceIdType vni)
    • toEid

      public static Eid toEid(Ipv6PrefixBinary prefix, InstanceIdType vni)
    • 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

      public static Eid toEid(Ipv4AddressBinary address, InstanceIdType vni)
    • 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

      public static Eid toEid(Ipv6AddressBinary address, InstanceIdType vni)
    • toEid

      public static Eid toEid(DistinguishedNameType dn, InstanceIdType vni)
    • 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

      public static Eid asEid(SimpleAddress address, InstanceIdType vni)
    • asIpv4PrefixEid

      public static Eid asIpv4PrefixEid(String prefix)
    • 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

      public static Eid asIpv4PrefixEid(String prefix, InstanceIdType iiType)
    • asIpv4PrefixEid

      public static Eid asIpv4PrefixEid(Eid eid, Inet4Address address, short mask)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(String prefix)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(long vni, String prefix)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(String prefix, InstanceIdType iiType)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(Eid eid, byte[] address, short mask)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(long vni, byte[] address, short mask)
    • asIpv4PrefixBinaryEid

      public static Eid asIpv4PrefixBinaryEid(InstanceIdType vni, byte[] address, short mask)
    • asIpv4Eid

      public static Eid asIpv4Eid(String address)
    • asIpv4Eid

      public static Eid asIpv4Eid(String address, long vni)
    • asIpv6Eid

      public static Eid asIpv6Eid(String address)
    • asIpv6Eid

      public static Eid asIpv6Eid(String address, long vni)
    • asIpv6PrefixEid

      public static Eid asIpv6PrefixEid(String prefix)
    • 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

      public static Eid asIpv6PrefixEid(Eid eid, Inet6Address address, short mask)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(String prefix)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(long vni, String prefix)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(String prefix, InstanceIdType iiType)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(Eid eid, byte[] address, short mask)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(long vni, byte[] address, short mask)
    • asIpv6PrefixBinaryEid

      public static Eid asIpv6PrefixBinaryEid(InstanceIdType vni, byte[] address, short mask)
    • asBinaryEid

      public static Eid asBinaryEid(SimpleAddress address, InstanceIdType iid)
    • asIpPrefixBinaryEid

      public static Eid asIpPrefixBinaryEid(Eid eid)
    • ipVersionFromString

      public static int ipVersionFromString(String ip)
    • 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

      public static Eid asServicePathEid(long vni, long servicePathId, short serviceIndex)
    • asMacEid

      public static Eid asMacEid(String address, long vni)
    • asMacEid

      public static Eid asMacEid(String address)
    • asDistinguishedNameEid

      public static Eid asDistinguishedNameEid(String address, long vni)
    • asDistinguishedNameEid

      public static Eid asDistinguishedNameEid(String address)
    • asKeyValueAddressEid

      public static Eid asKeyValueAddressEid(SimpleAddress key, SimpleAddress value)
    • asKeyValueAddressRloc

      public static Rloc asKeyValueAddressRloc(SimpleAddress key, SimpleAddress value)
    • asKeyValueAddress

      public static Rloc asKeyValueAddress(String key, SimpleAddress value)
    • asSrcDst

      public static SourceDestKey asSrcDst(String src, String dst, int smask, int dmask)
    • asSrcDstEid

      public static Eid asSrcDstEid(String src, String dst, int smask, int dmask, long vni)
    • asSrcDstEid

      public static Eid asSrcDstEid(SourceDestKey sd, InstanceIdType vni)
    • asTeLcafRloc

      public static Rloc asTeLcafRloc(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress> hopList)
    • asLocatorRecords

      public static List<LocatorRecord> asLocatorRecords(List<Rloc> locators)
    • getNoAddressEid

      public static Eid getNoAddressEid()
    • ipAddressToByteArray

      public static byte[] ipAddressToByteArray(Address addr)
    • convertToBinary

      public static Eid convertToBinary(Eid eid)
    • convertToBinary

      public static Rloc convertToBinary(Rloc rloc)
    • addressBinaryFromInet

      public static IpAddressBinary addressBinaryFromInet(InetAddress inetAddress)
      Converts the InetAddress into Ipv4 or Ipv6 IpAddressBinary. 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(Address address)
    • convertFromBinary

      public static Eid convertFromBinary(Eid eid)
    • convertFromBinary

      public static Rloc convertFromBinary(Rloc rloc)
    • addressNeedsConversionToBinary

      public static boolean addressNeedsConversionToBinary(Address address)
    • addressNeedsConversionFromBinary

      public static boolean addressNeedsConversionFromBinary(Address address)
    • compareIpAddressByteArrays

      public static int compareIpAddressByteArrays(byte[] one, byte[] two)
    • getIpPrefixMask

      public static short getIpPrefixMask(Eid eid)