Class MaskUtil
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.util.MaskUtil
-
public final class MaskUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static short
IPV4_MAX_MASK
static short
IPV6_MAX_MASK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
static java.lang.String
getAddressStringForIpv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix prefix)
static java.lang.String
getAddressStringForIpv6Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix prefix)
static short
getMaskForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static short
getMaskForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
static short
getMaskForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
static int
getMaxMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static java.lang.String
getPrefixAddress(java.lang.String prefix)
static java.lang.String
getPrefixMask(java.lang.String prefix)
static boolean
isMaskable(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static boolean
isMaskable(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
static Eid
normalize(Eid eid)
static Eid
normalize(Eid eid, short mask)
static byte[]
normalizeByteArray(byte[] address, short maskLength)
-
-
-
Field Detail
-
IPV4_MAX_MASK
public static final short IPV4_MAX_MASK
- See Also:
- Constant Field Values
-
IPV6_MAX_MASK
public static final short IPV6_MAX_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
isMaskable
public static boolean isMaskable(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
isMaskable
public static boolean isMaskable(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
-
getPrefixAddress
public static java.lang.String getPrefixAddress(java.lang.String prefix)
-
getPrefixMask
public static java.lang.String getPrefixMask(java.lang.String prefix)
-
normalizeByteArray
public static byte[] normalizeByteArray(byte[] address, short maskLength)
-
getMaxMask
public static int getMaxMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
getMaskForIpPrefix
public static short getMaskForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
-
getAddressStringForIpPrefix
public static java.lang.String getAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
-
getAddressStringForIpv4Prefix
public static java.lang.String getAddressStringForIpv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix prefix)
-
getAddressStringForIpv6Prefix
public static java.lang.String getAddressStringForIpv6Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix prefix)
-
getMaskForAddress
public static short getMaskForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
-
getMaskForAddress
public static short getMaskForAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
-