Class: Ansible::Ruby::Modules::Vmware_dvs_portgroup
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Vmware_dvs_portgroup
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb
Overview
Create or remove a Distributed vSwitch portgroup.
Instance Method Summary collapse
-
#network_policy ⇒ Array<String>, ...
Dictionary which configures the different security values for portgroup.,Valid attributes are:,- C(promiscuous) (bool): indicates whether promiscuous mode is allowed.
-
#num_ports ⇒ Integer
The number of ports the portgroup should contain.
-
#port_policy ⇒ Array<String>, ...
Dictionary which configures the advanced policy settings for the portgroup.,Valid attributes are:,- C(block_override) (bool): indicates if the block policy can be changed per port.
-
#portgroup_name ⇒ String
The name of the portgroup that is to be created or deleted.
-
#portgroup_type ⇒ :earlyBinding, ...
See VMware KB 1022312 regarding portgroup types.
-
#state ⇒ :present, :absent
Determines if the portgroup should be present or not.
-
#switch_name ⇒ String
The name of the distributed vSwitch the port group should be created on.
-
#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 ⇒ Integer, String
The VLAN ID that should be configured with the portgroup, use 0 for no VLAN.,If C(vlan_trunk) is configured to be I(true), this can be a range, example: 1-4094.
-
#vlan_trunk ⇒ Symbol?
Indicates whether this is a VLAN trunk or not.
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
#network_policy ⇒ Array<String>, ...
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 40 attribute :network_policy |
#num_ports ⇒ Integer
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 24 attribute :num_ports |
#port_policy ⇒ Array<String>, ...
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 48 attribute :port_policy |
#portgroup_name ⇒ String
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 12 attribute :portgroup_name |
#portgroup_type ⇒ :earlyBinding, ...
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 28 attribute :portgroup_type |
#state ⇒ :present, :absent
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 32 attribute :state |
#switch_name ⇒ String
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 16 attribute :switch_name |
#teaming_policy ⇒ Array<String>, ...
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 44 attribute :teaming_policy |
#vlan_id ⇒ Integer, String
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 20 attribute :vlan_id |
#vlan_trunk ⇒ Symbol?
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 36 attribute :vlan_trunk |