Class: Ansible::Ruby::Modules::Os_subnet

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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_endObject?

Returns From the subnet pool the last IP that should be assigned to the virtual machines.

Returns:

  • (Object, nil)

    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_startObject?

Returns From the subnet pool the starting address from which the IP should be allocated.

Returns:

  • (Object, nil)

    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

#cidrString?

Returns The CIDR representation of the subnet that should be assigned to the subnet. Required when I(state) is ‘present’.

Returns:

  • (String, nil)

    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_nameserversArray<String>, ...

Returns List of DNS nameservers for this subnet.

Returns:

  • (Array<String>, String, nil)

    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_dhcpBoolean?

Returns Whether DHCP should be enabled for this subnet.

Returns:

  • (Boolean, nil)

    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_ipObject?

Returns The ip that would be assigned to the gateway for this subnet.

Returns:

  • (Object, nil)

    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_routesArray<Hash>, ...

Returns A list of host route dictionaries for the subnet.

Returns:

  • (Array<Hash>, Hash, nil)

    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_versionInteger?

Returns The IP version of the subnet 4 or 6.

Returns:

  • (Integer, nil)

    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.

Returns:

  • (:"dhcpv6-stateful", :"dhcpv6-stateless", :slaac, nil)

    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.

Returns:

  • (:"dhcpv6-stateful", :"dhcpv6-stateless", :slaac, nil)

    IPv6 router advertisement mode



52
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 52

attribute :ipv6_ra_mode

#nameString

Returns The name of the subnet that should be created. Although Neutron allows for non-unique subnet names, this module enforces subnet name uniqueness.

Returns:

  • (String)

    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_nameString?

Returns Name of the network to which the subnet should be attached,requried when I(state) is ‘present’.

Returns:

  • (String, nil)

    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

#projectObject?

Returns Project name or ID containing the subnet (name admin-only).

Returns:

  • (Object, nil)

    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.

Returns:

  • (:present, :absent, nil)

    Indicate desired state of the resource



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/openstack/os_subnet.rb', line 11

attribute :state