Class: Ansible::Ruby::Modules::Vmware_portgroup
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_portgroup
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb
Overview
Create a VMware portgroup on given host/s or hosts of given cluster
Instance Method Summary collapse
-
#cluster_name ⇒ String?
Name of cluster name for host membership.,Portgroup will be created on all hosts of the given cluster.,This option is required if C(hosts) is not specified.
-
#hosts ⇒ Array<String>, ...
List of name of host or hosts on which portgroup needs to be added.,This option is required if C(cluster_name) is not specified.
-
#network_policy ⇒ Array<String>, ...
Network policy specifies layer 2 security settings for a portgroup such as promiscuous mode, where guest adapter listens to all the packets, MAC address changes and forged transmits.,Dict which configures the different security values for portgroup.,Valid attributes are:,- C(promiscuous_mode) (bool): indicates whether promiscuous mode is allowed.
-
#portgroup_name ⇒ String
Portgroup name to add.
-
#state ⇒ :present, ...
Determines if the portgroup should be present or not.
-
#switch_name ⇒ String
VSwitch to modify.
-
#teaming_policy ⇒ Array<String>, ...
Dictionary which configures the different teaming values for portgroup.,Valid attributes are:,- C(load_balance_policy) (string): Network adapter teaming policy.
-
#vlan_id ⇒ String
VLAN ID to assign to portgroup.
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
#cluster_name ⇒ String?
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 32 attribute :cluster_name |
#hosts ⇒ Array<String>, ...
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 36 attribute :hosts |
#network_policy ⇒ Array<String>, ...
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 24 attribute :network_policy |
#portgroup_name ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 16 attribute :portgroup_name |
#state ⇒ :present, ...
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 40 attribute :state |
#switch_name ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 12 attribute :switch_name |
#teaming_policy ⇒ Array<String>, ...
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 28 attribute :teaming_policy |
#vlan_id ⇒ String
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_portgroup.rb', line 20 attribute :vlan_id |