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(Ipv4Prefix prefix)
static java.lang.String
getAddressStringForIpv6Prefix(Ipv6Prefix prefix)
static short
getMaskForAddress(Address address)
static short
getMaskForAddress(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(Address address)
static java.lang.String
getPrefixAddress(java.lang.String prefix)
static java.lang.String
getPrefixMask(java.lang.String prefix)
static boolean
isMaskable(Address address)
static boolean
isMaskable(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(Address address)
-
isMaskable
public static boolean isMaskable(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(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(Ipv4Prefix prefix)
-
getAddressStringForIpv6Prefix
public static java.lang.String getAddressStringForIpv6Prefix(Ipv6Prefix prefix)
-
getMaskForAddress
public static short getMaskForAddress(SimpleAddress address)
-
getMaskForAddress
public static short getMaskForAddress(Address address)
-
-