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>, ...
Returns Dictionary which configures the different security values for portgroup.,Valid attributes are:,- C(promiscuous) (bool): indicates whether promiscuous mode is allowed. (default: false),- C(forged_transmits) (bool): indicates whether forged transmits are allowed. (default: false),- C(mac_changes) (bool): indicates whether mac changes are allowed. (default: false).
40 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 40 attribute :network_policy |
#num_ports ⇒ Integer
Returns The number of ports the portgroup should contain.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 24 attribute :num_ports |
#port_policy ⇒ Array<String>, ...
Returns 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. (default: true),- C(ipfix_override) (bool): indicates if the ipfix policy can be changed per port. (default: false),- C(live_port_move) (bool): indicates if a live port can be moved in or out of the portgroup. (default: false),- C(network_rp_override) (bool): indicates if the network resource pool can be changed per port. (default: false),- C(port_config_reset_at_disconnect) (bool): indicates if the configuration of a port is reset automatically after disconnect. (default: true),- C(security_override) (bool): indicates if the security policy can be changed per port. (default: false),- C(shaping_override) (bool): indicates if the shaping policy can be changed per port. (default: false),- C(traffic_filter_override) (bool): indicates if the traffic filter can be changed per port. (default: false),- C(uplink_teaming_override) (bool): indicates if the uplink teaming policy can be changed per port. (default: false),- C(vendor_config_override) (bool): indicates if the vendor config can be changed per port. (default: false),- C(vlan_override) (bool): indicates if the vlan can be changed per port. (default: false).
48 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 48 attribute :port_policy |
#portgroup_name ⇒ String
Returns The name of the portgroup that is to be created or deleted.
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 12 attribute :portgroup_name |
#portgroup_type ⇒ :earlyBinding, ...
Returns See VMware KB 1022312 regarding portgroup types.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 28 attribute :portgroup_type |
#state ⇒ :present, :absent
Returns Determines if the portgroup should be present or not.
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 32 attribute :state |
#switch_name ⇒ String
Returns The name of the distributed vSwitch the port group should be created on.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 16 attribute :switch_name |
#teaming_policy ⇒ Array<String>, ...
Returns Dictionary which configures the different teaming values for portgroup.,Valid attributes are:,- C(load_balance_policy) (string): Network adapter teaming policy. (default: loadbalance_srcid), - choices: [ loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, loadbalance_loadbased, failover_explicit], - “loadbalance_loadbased” is available from version 2.6 and onwards,- C(inbound_policy) (bool): Indicate whether or not the teaming policy is applied to inbound frames as well. (default: False),- C(notify_switches) (bool): Indicate whether or not to notify the physical switch if a link fails. (default: True),- C(rolling_order) (bool): Indicate whether or not to use a rolling policy when restoring links. (default: False).
44 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 44 attribute :teaming_policy |
#vlan_id ⇒ Integer, String
Returns 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.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 20 attribute :vlan_id |
#vlan_trunk ⇒ Symbol?
Returns Indicates whether this is a VLAN trunk or not.
36 |
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_dvs_portgroup.rb', line 36 attribute :vlan_trunk |