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

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

Overview

Manages Layer 2 interfaces

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

#access_vlanInteger?

Returns If C(mode=access), used as the access VLAN ID.

Returns:

  • (Integer, nil)

    If C(mode=access), used as the access VLAN ID.



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

attribute :access_vlan

#interfaceString?

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

Returns:

  • (String, nil)

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



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

attribute :interface

#mode:access, ...

Returns Mode for the Layer 2 port.

Returns:

  • (:access, :trunk, nil)

    Mode for the Layer 2 port.



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

attribute :mode

#native_vlanInteger?

Returns If C(mode=trunk), used as the trunk native VLAN ID.

Returns:

  • (Integer, nil)

    If C(mode=trunk), used as the trunk native VLAN ID.



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

attribute :native_vlan

#state:present, ...

Returns Manage the state of the resource.

Returns:

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

    Manage the state of the resource.



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

attribute :state

#trunk_allowed_vlansObject?

Returns if C(mode=trunk), these are the only VLANs that will be configured on the trunk, i.e. “2-10,15”.

Returns:

  • (Object, nil)

    if C(mode=trunk), these are the only VLANs that will be configured on the trunk, i.e. “2-10,15”.



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

attribute :trunk_allowed_vlans

#trunk_vlansString?

Returns If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk.

Returns:

  • (String, nil)

    If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk.



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

attribute :trunk_vlans