Class MaskUtil
java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.MaskUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final org.opendaylight.yangtools.yang.common.Uint8
static final short
static final org.opendaylight.yangtools.yang.common.Uint8
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAddressStringForIpPrefix
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) static String
static String
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 String
getPrefixAddress
(String prefix) static String
getPrefixMask
(String prefix) static boolean
isMaskable
(Address address) static boolean
isMaskable
(SimpleAddress address) static Eid
static Eid
static byte[]
normalizeByteArray
(byte[] address, short maskLength)
-
Field Details
-
IPV4_MAX_MASK
public static final short IPV4_MAX_MASK- See Also:
-
IPV4_MAX_MASK_UINT
public static final org.opendaylight.yangtools.yang.common.Uint8 IPV4_MAX_MASK_UINT -
IPV6_MAX_MASK
public static final short IPV6_MAX_MASK- See Also:
-
IPV6_MAX_MASK_UINT
public static final org.opendaylight.yangtools.yang.common.Uint8 IPV6_MAX_MASK_UINT
-
-
Method Details
-
isMaskable
-
isMaskable
-
getPrefixAddress
-
getPrefixMask
-
normalize
-
normalize
-
normalizeByteArray
public static byte[] normalizeByteArray(byte[] address, short maskLength) -
getMaxMask
-
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 String getAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) -
getAddressStringForIpv4Prefix
-
getAddressStringForIpv6Prefix
-
getMaskForAddress
-
getMaskForAddress
-