Class MaskUtil


  • public final class MaskUtil
    extends java.lang.Object
    • 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)
      • 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 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)