Class Subnet
- 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:
- api doc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubnet.CreateBuilderCreate and Update builders (inheriting from Builder)static classSubnet.CreateSubnetCreate and Update options - extend the domain class, passed to API update and create calls.static classSubnet.UpdateBuilderCreate and Update builders (inheriting from Builder)static classSubnet.UpdateSubnetCreate and Update options - extend the domain class, passed to API update and create calls.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Subnet.CreateBuildercreateBuilder(String networkId, String cidr)booleanequals(Object o)com.google.common.collect.ImmutableSet<AllocationPool>getAllocationPools()StringgetCidr()com.google.common.collect.ImmutableSet<String>getDnsNameservers()BooleangetEnableDhcp()StringgetGatewayIp()com.google.common.collect.ImmutableSet<HostRoute>getHostRoutes()StringgetId()IPv6DHCPModegetIPv6AddressMode()IPv6DHCPModegetIPv6RAMode()IntegergetIpVersion()StringgetName()StringgetNetworkId()StringgetTenantId()inthashCode()StringtoString()static Subnet.UpdateBuilderupdateBuilder()
-
-
-
Method Detail
-
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.
-
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.
-
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
-
-