Class: Ansible::Ruby::Modules::Nxos_vlan

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb

Overview

Manages VLAN configurations on NX-OS switches

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

#admin_state:up, ...

Returns Manage the vlan admin state of the VLAN equivalent to shut/no shut in vlan config mode.

Returns:

  • (:up, :down, nil)

    Manage the vlan admin state of the VLAN equivalent to shut/no shut in vlan config mode



27
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 27

attribute :admin_state

#nameString?

Returns name of VLAN.

Returns:

  • (String, nil)

    name of VLAN



19
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 19

attribute :name

#state:present, ...

Returns Manage the state of the resource.

Returns:

  • (:present, :absent, nil)

    Manage the state of the resource



31
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 31

attribute :state

#vlan_idString?

Returns single vlan id.

Returns:

  • (String, nil)

    single vlan id



11
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 11

attribute :vlan_id

#vlan_rangeArray<String>, ...

Returns range of VLANs such as 2-10 or 2,5,10-15, etc.

Returns:

  • (Array<String>, String, nil)

    range of VLANs such as 2-10 or 2,5,10-15, etc.



15
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 15

attribute :vlan_range

#vlan_state:active, ...

Returns Manage the vlan operational state of the VLAN (equivalent to state | suspend command.

Returns:

  • (:active, :suspend, nil)

    Manage the vlan operational state of the VLAN (equivalent to state | suspend command



23
# File 'lib/ansible/ruby/modules/generated/core/network/nxos/nxos_vlan.rb', line 23

attribute :vlan_state