Class SubnetDetail


  • public class SubnetDetail
    extends Object
    Represents an IPv4 or IPv6 subnet it also used to holds the subnet details after subneting calculation with the ipam engine, details like range, number of hosts, etc
    Author:
    Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
    • Constructor Detail

      • SubnetDetail

        public SubnetDetail​(String cidr)
      • SubnetDetail

        public SubnetDetail​(String subnetId,
                            String cidr)
    • Method Detail

      • getSubnetId

        public String getSubnetId()
      • setSubnetId

        public void setSubnetId​(String subnetId)
      • getCidr

        public String getCidr()
      • setCidr

        public void setCidr​(String cidr)
      • getIpAddress

        public String getIpAddress()
      • setIpAddress

        public void setIpAddress​(String ipAddress)
      • getMaskBits

        public int getMaskBits()
      • setMaskBits

        public void setMaskBits​(int maskBits)
      • getNumberOfHosts

        public int getNumberOfHosts()
      • setNumberOfHosts

        public void setNumberOfHosts​(int numberOfHosts)
      • getNetworkIpAddr

        public String getNetworkIpAddr()
      • setNetworkIpAddr

        public void setNetworkIpAddr​(String networkIpAddr)
      • getBroadCastIpAddr

        public String getBroadCastIpAddr()
      • setBroadCastIpAddr

        public void setBroadCastIpAddr​(String broadCastIpAddr)
      • getRange

        public String getRange()
      • getIpAddrV

        public int getIpAddrV()
      • setIpAddrV

        public void setIpAddrV​(int ipAddrV)
      • setBinaryMask

        public void setBinaryMask​(List<List<String>> binaryMask)
      • getMask

        public String getMask()
      • setMask

        public void setMask​(List<String> mask)