Class: Ansible::Ruby::Modules::Vmware_vswitch

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

Overview

This module can be used to add, remove and update a VMware Standard Switch to an ESXi host.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#esxi_hostnameString?

Returns Manage the vSwitch using this ESXi host system.

Returns:

  • (String, nil)

    Manage the vSwitch using this ESXi host system.



31
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 31

attribute :esxi_hostname

#mtuInteger?

Returns MTU to configure on vSwitch.

Returns:

  • (Integer, nil)

    MTU to configure on vSwitch.



23
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 23

attribute :mtu

#nicsObject?

Returns A list of vmnic names or vmnic name to attach to vSwitch.,Alias C(nics) is added in version 2.4.

Returns:

  • (Object, nil)

    A list of vmnic names or vmnic name to attach to vSwitch.,Alias C(nics) is added in version 2.4.



16
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 16

attribute :nics

#number_of_portsInteger?

Returns Number of port to configure on vSwitch.

Returns:

  • (Integer, nil)

    Number of port to configure on vSwitch.



19
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 19

attribute :number_of_ports

#state:absent, ...

Returns Add or remove the switch.

Returns:

  • (:absent, :present, nil)

    Add or remove the switch.



27
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 27

attribute :state

#switchString

Returns vSwitch name to add.,Alias C(switch) is added in version 2.4.

Returns:

  • (String)

    vSwitch name to add.,Alias C(switch) is added in version 2.4.



12
# File 'lib/ansible/ruby/modules/generated/cloud/vmware/vmware_vswitch.rb', line 12

attribute :switch