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/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.
-
#availability_zone ⇒ Object?
Ignored.
-
#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 ⇒ :yes, ...
Whether DHCP should be enabled for this subnet.
-
#extra_specs ⇒ Object?
Dictionary with extra key/value pairs passed to the API.
-
#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,Required when I(state) is ‘present’.
-
#no_gateway_ip ⇒ :yes, ...
The gateway IP would not be assigned for this subnet.
-
#project ⇒ Object?
Project name or ID containing the subnet (name admin-only).
-
#state ⇒ :present, ...
Indicate desired state of the resource.
-
#use_default_subnetpool ⇒ :yes, ...
Use the default subnetpool for I(ip_version) to obtain a CIDR.
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?
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 50 attribute :allocation_pool_end |
#allocation_pool_start ⇒ Object?
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 47 attribute :allocation_pool_start |
#availability_zone ⇒ Object?
72 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 72 attribute :availability_zone |
#cidr ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 24 attribute :cidr |
#dns_nameservers ⇒ Array<String>, ...
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 43 attribute :dns_nameservers |
#enable_dhcp ⇒ :yes, ...
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 32 attribute :enable_dhcp |
#extra_specs ⇒ Object?
75 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 75 attribute :extra_specs |
#gateway_ip ⇒ Object?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 36 attribute :gateway_ip |
#host_routes ⇒ Array<Hash>, ...
53 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 53 attribute :host_routes |
#ip_version ⇒ Integer?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 28 attribute :ip_version |
#ipv6_address_mode ⇒ :"dhcpv6-stateful", ...
61 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 61 attribute :ipv6_address_mode |
#ipv6_ra_mode ⇒ :"dhcpv6-stateful", ...
57 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 57 attribute :ipv6_ra_mode |
#name ⇒ String
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 20 attribute :name |
#network_name ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 16 attribute :network_name |
#no_gateway_ip ⇒ :yes, ...
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 39 attribute :no_gateway_ip |
#project ⇒ Object?
69 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 69 attribute :project |
#state ⇒ :present, ...
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 12 attribute :state |
#use_default_subnetpool ⇒ :yes, ...
65 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_subnet.rb', line 65 attribute :use_default_subnetpool |