Class MaskUtil
java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.MaskUtil
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final shortstatic final org.opendaylight.yangtools.yang.common.Uint8static final shortstatic final org.opendaylight.yangtools.yang.common.Uint8
- 
Method SummaryModifier 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_MASKpublic static final short IPV4_MAX_MASK- See Also:
 
- 
IPV4_MAX_MASK_UINTpublic static final org.opendaylight.yangtools.yang.common.Uint8 IPV4_MAX_MASK_UINT
- 
IPV6_MAX_MASKpublic static final short IPV6_MAX_MASK- See Also:
 
- 
IPV6_MAX_MASK_UINTpublic static final org.opendaylight.yangtools.yang.common.Uint8 IPV6_MAX_MASK_UINT
 
- 
- 
Method Details- 
isMaskable
- 
isMaskable
- 
getPrefixAddress
- 
getPrefixMask
- 
normalize
- 
normalize
- 
normalizeByteArraypublic static byte[] normalizeByteArray(byte[] address, short maskLength) 
- 
getMaxMask
- 
getMaskForIpPrefixpublic static short getMaskForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) 
- 
getAddressStringForIpPrefixpublic static String getAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix) 
- 
getAddressStringForIpv4Prefix
- 
getAddressStringForIpv6Prefix
- 
getMaskForAddress
- 
getMaskForAddress
 
-