Class Subnet
java.lang.Object
org.jclouds.openstack.neutron.v2.domain.Subnet
- Direct Known Subclasses:
Subnet.CreateSubnet,Subnet.UpdateSubnet
A Neutron subnet
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreate and Update builders (inheriting from Builder)static classCreate and Update options - extend the domain class, passed to API update and create calls.static classCreate and Update builders (inheriting from Builder)static classCreate and Update options - extend the domain class, passed to API update and create calls. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subnet.CreateBuildercreateBuilder(String networkId, String cidr) booleancom.google.common.collect.ImmutableSet<AllocationPool> getCidr()com.google.common.collect.ImmutableSet<String> com.google.common.collect.ImmutableSet<HostRoute> getId()getName()inthashCode()toString()static Subnet.UpdateBuilder
-
Method Details
-
getId
- Returns:
- the id of the subnet
-
getName
- Returns:
- the name of the subnet
-
getNetworkId
- Returns:
- the id of the network this subnet is associated with.
-
getTenantId
- Returns:
- the id of the tenant where this entity is associated with.
-
getAllocationPools
- Returns:
- the sub-ranges of CIDR available for dynamic allocation to ports.
-
getGatewayIp
- Returns:
- the default gateway used by devices in this subnet.
-
getIpVersion
- Returns:
- the IP version used by this subnet.
-
getCidr
- Returns:
- the CIDR representing the IP range for this subnet, based on IP version.
-
getEnableDhcp
- Returns:
- true if DHCP is enabled for this subnet, false if not.
-
getDnsNameservers
- Returns:
- Configurable maximum amount of name servers per subnet. The default is 5.
-
getHostRoutes
- Returns:
- Configurable maximum amount of routes per subnet. The default is 20.
-
getIPv6AddressMode
- Returns:
- The IP v6 Address Mode.
-
getIPv6RAMode
- Returns:
- The IP v6 Router Advertisement mode.
-
hashCode
public int hashCode() -
equals
-
toString
-
createBuilder
- Returns:
- the Builder for creating a new Router
-
updateBuilder
- Returns:
- the Builder for updating a Router
-