The Subnet class inherits from Resource.
Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See Resource.new() and Resource.existing().
| Parameters: |
|
|---|
The start and end addresses for the allocation pools.
The CIDR.
Timestamp when the subnet was created.
The subnet description.
A list of DNS nameservers.
The gateway IP address.
A list of host routes.
The IP version, which is 4 or 6.
The IPv6 address modes which are ‘dhcpv6-stateful’, ‘dhcpv6-stateless’, or ‘SLAAC’
The IPv6 router advertisements modes
Set to True if DHCP is enabled and False if DHCP is disabled. Type: bool
The subnet name.
The ID of the attached network.
The ID of the project this subnet is associated with.
Revision number of the subnet. Type: int
The ID of the segment this subnet is associated with.
Service types for this subnet
The subnet pool ID from which to obtain a CIDR.
Timestamp when the subnet was last updated.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.