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

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

Overview

Add 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

#mtuInteger?

Returns MTU to configure on vswitch.

Returns:

  • (Integer, nil)

    MTU to configure on vswitch



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

attribute :mtu

#nic_nameString

Returns vmnic name to attach to vswitch.

Returns:

  • (String)

    vmnic name to attach to vswitch



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

attribute :nic_name

#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/extras/cloud/vmware/vmware_vswitch.rb', line 19

attribute :number_of_ports

#state:present, ...

Returns Add or remove the switch.

Returns:

  • (:present, :absent, nil)

    Add or remove the switch



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

attribute :state

#switch_nameString

Returns vSwitch name to add.

Returns:

  • (String)

    vSwitch name to add



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

attribute :switch_name