Class Subnet

    • Method Detail

      • getName

        @Nullable
        public String getName()
        Returns:
        the name of the subnet
      • getNetworkId

        @Nullable
        public String getNetworkId()
        Returns:
        the id of the network this subnet is associated with.
      • getTenantId

        @Nullable
        public String getTenantId()
        Returns:
        the id of the tenant where this entity is associated with.
      • getAllocationPools

        @Nullable
        public com.google.common.collect.ImmutableSet<AllocationPool> getAllocationPools()
        Returns:
        the sub-ranges of CIDR available for dynamic allocation to ports.
      • getGatewayIp

        @Nullable
        public String getGatewayIp()
        Returns:
        the default gateway used by devices in this subnet.
      • getIpVersion

        @Nullable
        public Integer getIpVersion()
        Returns:
        the IP version used by this subnet.
      • getCidr

        @Nullable
        public String getCidr()
        Returns:
        the CIDR representing the IP range for this subnet, based on IP version.
      • getEnableDhcp

        @Nullable
        public Boolean getEnableDhcp()
        Returns:
        true if DHCP is enabled for this subnet, false if not.
      • getDnsNameservers

        @Nullable
        public com.google.common.collect.ImmutableSet<String> getDnsNameservers()
        Returns:
        Configurable maximum amount of name servers per subnet. The default is 5.
      • getHostRoutes

        @Nullable
        public com.google.common.collect.ImmutableSet<HostRoute> getHostRoutes()
        Returns:
        Configurable maximum amount of routes per subnet. The default is 20.
      • getIPv6AddressMode

        @Nullable
        public IPv6DHCPMode getIPv6AddressMode()
        Returns:
        The IP v6 Address Mode.
      • getIPv6RAMode

        @Nullable
        public IPv6DHCPMode getIPv6RAMode()
        Returns:
        The IP v6 Router Advertisement mode.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • updateBuilder

        public static Subnet.UpdateBuilder updateBuilder()
        Returns:
        the Builder for updating a Router