Package org.openstack4j.model.network
Interface Subnet
-
- All Superinterfaces:
BasicResource,Buildable<SubnetBuilder>,IdEntity,ModelEntity,Resource,Serializable,TimeEntity
- All Known Implementing Classes:
NeutronSubnet,NeutronSubnet.NeutronSubnetNoGateway
public interface Subnet extends Resource, TimeEntity, Buildable<SubnetBuilder>
A Subnet is a network with Pools and network based settings- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends Pool>getAllocationPools()StringgetCidr()List<String>getDnsNames()StringgetGateway()List<? extends HostRoute>getHostRoutes()Ipv6AddressModegetIpv6AddressMode()Ipv6RaModegetIpv6RaMode()IPVersionTypegetIpVersion()StringgetNetworkId()booleanisDHCPEnabled()-
Methods inherited from interface org.openstack4j.model.common.BasicResource
getName, setName
-
Methods inherited from interface org.openstack4j.model.common.Resource
getTenantId, setTenantId
-
Methods inherited from interface org.openstack4j.model.common.TimeEntity
getCreatedTime, getUpdatedTime
-
-
-
-
Method Detail
-
isDHCPEnabled
boolean isDHCPEnabled()
- Returns:
- true if DHCP is enabled for this subnet, false if not.
-
getNetworkId
String getNetworkId()
- Returns:
- the id of the network this subnet is associated with
-
getAllocationPools
List<? extends Pool> getAllocationPools()
- Returns:
- the sub-ranges of cidr available for dynamic allocation to ports
-
getHostRoutes
List<? extends HostRoute> getHostRoutes()
- Returns:
- the set of routes that should be used by devices with IPs from this subnet
-
getIpVersion
IPVersionType getIpVersion()
- Returns:
- the ip version used by this subnet
-
getGateway
String getGateway()
- Returns:
- the default gateway used by devices in this subnet
-
getCidr
String getCidr()
- Returns:
- the cidr representing the IP range for this subnet, based on IP version
-
getIpv6AddressMode
Ipv6AddressMode getIpv6AddressMode()
- Returns:
- The IPv6 address modes specifies mechanisms for assigning IP addresses
-
getIpv6RaMode
Ipv6RaMode getIpv6RaMode()
- Returns:
- the IPv6 router advertisement specifies whether the networking service should transmit ICMPv6 packets, for a subnet
-
-