Class: Ansible::Ruby::Modules::Os_port

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/openstack/os_port.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#admin_state_upObject?

Returns Sets admin state.

Returns:

  • (Object, nil)

    Sets admin state.



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

attribute :admin_state_up

#allowed_address_pairsObject?

Returns Allowed address pairs list. Allowed address pairs are supported with dictionary structure. e.g. allowed_address_pairs: - ip_address: 10.1.0.12 mac_address: ab:cd:ef:12:34:56 - ip_address: …

Returns:

  • (Object, nil)

    Allowed address pairs list. Allowed address pairs are supported with dictionary structure. e.g. allowed_address_pairs: - ip_address: 10.1.0.12 mac_address: ab:cd:ef:12:34:56 - ip_address: …



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

attribute :allowed_address_pairs

#device_idObject?

Returns Device ID of device using this port.

Returns:

  • (Object, nil)

    Device ID of device using this port.



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

attribute :device_id

#device_ownerObject?

Returns The ID of the entity that uses this port.

Returns:

  • (Object, nil)

    The ID of the entity that uses this port.



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

attribute :device_owner

#extra_dhcp_optsObject?

Returns Extra dhcp options to be assigned to this port. Extra options are supported with dictionary structure. e.g. extra_dhcp_opts: - opt_name: opt name1 opt_value: value1 - opt_name: …

Returns:

  • (Object, nil)

    Extra dhcp options to be assigned to this port. Extra options are supported with dictionary structure. e.g. extra_dhcp_opts: - opt_name: opt name1 opt_value: value1 - opt_name: …



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

attribute :extra_dhcp_opts

#fixed_ipsArray<Hash>, ...

Returns Desired IP and/or subnet for this port. Subnet is referenced by subnet_id and IP is referenced by ip_address.

Returns:

  • (Array<Hash>, Hash, nil)

    Desired IP and/or subnet for this port. Subnet is referenced by subnet_id and IP is referenced by ip_address.



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

attribute :fixed_ips

#mac_addressObject?

Returns MAC address of this port.

Returns:

  • (Object, nil)

    MAC address of this port.



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

attribute :mac_address

#nameString?

Returns Name that has to be given to the port.

Returns:

  • (String, nil)

    Name that has to be given to the port.



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

attribute :name

#networkString

Returns Network ID or name this port belongs to.

Returns:

  • (String)

    Network ID or name this port belongs to.



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

attribute :network

#no_security_groupsBoolean?

Returns Do not associate a security group with this port.

Returns:

  • (Boolean, nil)

    Do not associate a security group with this port.



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

attribute :no_security_groups

#security_groupsArray<String>, ...

Returns Security group(s) ID(s) or name(s) associated with the port (comma separated string or YAML list).

Returns:

  • (Array<String>, String, nil)

    Security group(s) ID(s) or name(s) associated with the port (comma separated string or YAML list)



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

attribute :security_groups

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



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

attribute :state