java.lang.Object
org.opendaylight.lispflowmapping.lisp.util.MaskUtil

public final class MaskUtil extends Object
  • 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

      public static boolean isMaskable(Address address)
    • isMaskable

      public static boolean isMaskable(SimpleAddress address)
    • getPrefixAddress

      public static String getPrefixAddress(String prefix)
    • getPrefixMask

      public static String getPrefixMask(String prefix)
    • normalize

      public static Eid normalize(Eid eid, short mask)
    • normalize

      public static Eid normalize(Eid eid)
    • 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 String getAddressStringForIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
    • getAddressStringForIpv4Prefix

      public static String getAddressStringForIpv4Prefix(Ipv4Prefix prefix)
    • getAddressStringForIpv6Prefix

      public static String getAddressStringForIpv6Prefix(Ipv6Prefix prefix)
    • getMaskForAddress

      public static short getMaskForAddress(SimpleAddress address)
    • getMaskForAddress

      public static short getMaskForAddress(Address address)