Class: Ansible::Ruby::Modules::Nxos_switchport

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

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, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#access_vlanString?

Returns if mode=access, used as the access vlan id.

Returns:

  • (String, nil)

    if mode=access, used as the access vlan id



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

attribute :access_vlan

#interfaceString

Returns Full name of the interface, i.e. Ethernet1/1.

Returns:

  • (String)

    Full name of the interface, i.e. Ethernet1/1



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

attribute :interface

#mode:access, ...

Returns Mode for the Layer 2 port.

Returns:

  • (:access, :trunk, nil)

    Mode for the Layer 2 port



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

attribute :mode

#native_vlanString?

Returns if mode=trunk, used as the trunk native vlan id.

Returns:

  • (String, nil)

    if mode=trunk, used as the trunk native vlan id



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

attribute :native_vlan

#state:present, ...

Returns Manage the state of the resource.

Returns:

  • (:present, :absent, :unconfigured, nil)

    Manage the state of the resource.



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

attribute :state

#trunk_vlansString?

Returns if mode=trunk, used as the vlan range to ADD or REMOVE from the trunk.

Returns:

  • (String, nil)

    if mode=trunk, used as the vlan range to ADD or REMOVE from the trunk



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

attribute :trunk_vlans