Class MaskUtil
java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.MaskUtil
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final org.opendaylight.yangtools.yang.common.Uint8static final shortstatic final org.opendaylight.yangtools.yang.common.Uint8 - 
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) static Stringstatic Stringstatic shortgetMaskForAddress(Address address) static shortgetMaskForAddress(SimpleAddress address) static shortgetMaskForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) static intgetMaxMask(Address address) static StringgetPrefixAddress(String prefix) static StringgetPrefixMask(String prefix) static booleanisMaskable(Address address) static booleanisMaskable(SimpleAddress address) static Eidstatic Eidstatic 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
 
 -