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 class
Subnet.CreateBuilder
Create and Update builders (inheriting from Builder)static class
Subnet.CreateSubnet
Create and Update options - extend the domain class, passed to API update and create calls.static class
Subnet.UpdateBuilder
Create and Update builders (inheriting from Builder)static class
Subnet.UpdateSubnet
Create 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.CreateBuilder
createBuilder(String networkId, String cidr)
boolean
equals(Object o)
com.google.common.collect.ImmutableSet<AllocationPool>
getAllocationPools()
String
getCidr()
com.google.common.collect.ImmutableSet<String>
getDnsNameservers()
Boolean
getEnableDhcp()
String
getGatewayIp()
com.google.common.collect.ImmutableSet<HostRoute>
getHostRoutes()
String
getId()
IPv6DHCPMode
getIPv6AddressMode()
IPv6DHCPMode
getIPv6RAMode()
Integer
getIpVersion()
String
getName()
String
getNetworkId()
String
getTenantId()
int
hashCode()
String
toString()
static Subnet.UpdateBuilder
updateBuilder()
-
-
-
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
-
-