Class: Ansible::Ruby::Modules::Os_port
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Os_port
- 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
-
#admin_state_up ⇒ Object?
Sets admin state.
-
#allowed_address_pairs ⇒ Object?
Allowed address pairs list.
-
#availability_zone ⇒ Object?
Ignored.
-
#device_id ⇒ Object?
Device ID of device using this port.
-
#device_owner ⇒ Object?
The ID of the entity that uses this port.
-
#extra_dhcp_opts ⇒ Object?
Extra dhcp options to be assigned to this port.
-
#fixed_ips ⇒ Array<Hash>, ...
Desired IP and/or subnet for this port.
-
#mac_address ⇒ Object?
MAC address of this port.
-
#name ⇒ String?
Name that has to be given to the port.
-
#network ⇒ String
Network ID or name this port belongs to.
-
#no_security_groups ⇒ String?
Do not associate a security group with this port.
-
#security_groups ⇒ Array<String>, ...
Security group(s) ID(s) or name(s) associated with the port (comma separated string or YAML list).
-
#state ⇒ :present, ...
Should the resource be present or absent.
Methods inherited from Base
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_up ⇒ Object?
Returns Sets admin state.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 24 attribute :admin_state_up |
#allowed_address_pairs ⇒ Object?
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: …
38 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 38 attribute :allowed_address_pairs |
#availability_zone ⇒ Object?
Returns Ignored. Present for backwards compatibility.
54 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 54 attribute :availability_zone |
#device_id ⇒ Object?
Returns 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_owner ⇒ Object?
Returns 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_opts ⇒ Object?
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: …
41 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 41 attribute :extra_dhcp_opts |
#fixed_ips ⇒ Array<Hash>, ...
Returns 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_address ⇒ Object?
Returns MAC address of this port.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 27 attribute :mac_address |
#name ⇒ String?
Returns 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 |
#network ⇒ String
Returns 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_groups ⇒ String?
Returns 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_groups ⇒ Array<String>, ...
Returns 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.
50 |
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_port.rb', line 50 attribute :state |