Class: Ansible::Ruby::Modules::Os_subnet
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Os_subnet
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb
Overview
Add or Remove a subnet to an OpenStack network
Instance Method Summary collapse
-
#allocation_pool_end ⇒ Object?
From the subnet pool the last IP that should be assigned to the virtual machines.
-
#allocation_pool_start ⇒ Object?
From the subnet pool the starting address from which the IP should be allocated.
-
#cidr ⇒ String?
The CIDR representation of the subnet that should be assigned to the subnet.
-
#dns_nameservers ⇒ Array<String>, ...
List of DNS nameservers for this subnet.
-
#enable_dhcp ⇒ Boolean?
Whether DHCP should be enabled for this subnet.
-
#gateway_ip ⇒ Object?
The ip that would be assigned to the gateway for this subnet.
-
#host_routes ⇒ Array<Hash>, ...
A list of host route dictionaries for the subnet.
-
#ip_version ⇒ Integer?
The IP version of the subnet 4 or 6.
-
#ipv6_address_mode ⇒ :"dhcpv6-stateful", ...
IPv6 address mode.
-
#ipv6_ra_mode ⇒ :"dhcpv6-stateful", ...
IPv6 router advertisement mode.
-
#name ⇒ String
The name of the subnet that should be created.
-
#network_name ⇒ String?
Name of the network to which the subnet should be attached,requried when I(state) is ‘present’.
-
#project ⇒ Object?
Project name or ID containing the subnet (name admin-only).
-
#state ⇒ :present, ...
Indicate desired state of the resource.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#allocation_pool_end ⇒ Object?
Returns From the subnet pool the last IP that should be assigned to the virtual machines.
45 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 45 attribute :allocation_pool_end |
#allocation_pool_start ⇒ Object?
Returns From the subnet pool the starting address from which the IP should be allocated.
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 42 attribute :allocation_pool_start |
#cidr ⇒ String?
Returns The CIDR representation of the subnet that should be assigned to the subnet. Required when I(state) is ‘present’.
23 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 23 attribute :cidr |
#dns_nameservers ⇒ Array<String>, ...
Returns List of DNS nameservers for this subnet.
38 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 38 attribute :dns_nameservers |
#enable_dhcp ⇒ Boolean?
Returns Whether DHCP should be enabled for this subnet.
31 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 31 attribute :enable_dhcp |
#gateway_ip ⇒ Object?
Returns The ip that would be assigned to the gateway for this subnet.
35 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 35 attribute :gateway_ip |
#host_routes ⇒ Array<Hash>, ...
Returns A list of host route dictionaries for the subnet.
48 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 48 attribute :host_routes |
#ip_version ⇒ Integer?
Returns The IP version of the subnet 4 or 6.
27 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 27 attribute :ip_version |
#ipv6_address_mode ⇒ :"dhcpv6-stateful", ...
Returns IPv6 address mode.
56 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 56 attribute :ipv6_address_mode |
#ipv6_ra_mode ⇒ :"dhcpv6-stateful", ...
Returns IPv6 router advertisement mode.
52 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 52 attribute :ipv6_ra_mode |
#name ⇒ String
Returns The name of the subnet that should be created. Although Neutron allows for non-unique subnet names, this module enforces subnet name uniqueness.
19 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 19 attribute :name |
#network_name ⇒ String?
Returns Name of the network to which the subnet should be attached,requried when I(state) is ‘present’.
15 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 15 attribute :network_name |
#project ⇒ Object?
Returns Project name or ID containing the subnet (name admin-only).
60 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 60 attribute :project |
#state ⇒ :present, ...
Returns Indicate desired state of the resource.
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 11 attribute :state |