java.lang.Object
org.jclouds.openstack.neutron.v2.domain.Subnet
Direct Known Subclasses:
Subnet.CreateSubnet, Subnet.UpdateSubnet

public class Subnet extends Object
A Neutron subnet
See Also:
  • Method Details

    • getId

      @Nullable public String getId()
      Returns:
      the id of the subnet
    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createBuilder

      public static Subnet.CreateBuilder createBuilder(String networkId, String cidr)
      Returns:
      the Builder for creating a new Router
    • updateBuilder

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