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

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

Overview

Add, Update or Remove ports from an OpenStack cloud. A I(state) of ‘present’ will ensure the port is created or updated if required.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #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.



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

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: …



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

attribute :allowed_address_pairs

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



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

attribute :availability_zone

#device_idObject?

Returns Device ID of device using this port.

Returns:

  • (Object, nil)

    Device ID of device using this port.



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

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.



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

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: …



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

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.



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

attribute :fixed_ips

#mac_addressObject?

Returns MAC address of this port.

Returns:

  • (Object, nil)

    MAC address of this port.



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

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.



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

attribute :name

#networkString

Returns Network ID or name this port belongs to.

Returns:

  • (String)

    Network ID or name this port belongs to.



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

attribute :network

#no_security_groupsString?

Returns Do not associate a security group with this port.

Returns:

  • (String, nil)

    Do not associate a security group with this port.



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

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)



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

attribute :security_groups

#state:present, ...

Returns Should the resource be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the resource be present or absent.



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

attribute :state