Class: Ansible::Ruby::Modules::Nxos_l2_interface

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

Overview

This module provides declarative management of Layer-2 interface on Cisco NXOS devices.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #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 Configure given VLAN in access port. If C(mode=access), used as the access VLAN ID.

Returns:

  • (Integer, nil)

    Configure given VLAN in access port. If C(mode=access), used as the access VLAN ID.



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

attribute :access_vlan

#aggregateArray<Hash>, ...

Returns List of Layer-2 interface definitions.

Returns:

  • (Array<Hash>, Hash, nil)

    List of Layer-2 interface definitions.



35
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 35

attribute :aggregate

#mode:access, ...

Returns Mode in which interface needs to be configured.

Returns:

  • (:access, :trunk, nil)

    Mode in which interface needs to be configured.



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

attribute :mode

#nameString

Returns Full name of the interface excluding any logical unit number, i.e. Ethernet1/1.

Returns:

  • (String)

    Full name of the interface excluding any logical unit number, i.e. Ethernet1/1.



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

attribute :name

#native_vlanInteger?

Returns Native VLAN to be configured in trunk port. If C(mode=trunk), used as the trunk native VLAN ID.

Returns:

  • (Integer, nil)

    Native VLAN to be configured in trunk port. If C(mode=trunk), used as the trunk native VLAN ID.



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

attribute :native_vlan

#state:present, ...

Returns Manage the state of the Layer-2 Interface configuration.

Returns:

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

    Manage the state of the Layer-2 Interface configuration.



39
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 39

attribute :state

#trunk_allowed_vlansObject?

Returns List of allowed VLANs in a given trunk port. If C(mode=trunk), these are the only VLANs that will be configured on the trunk, i.e. “2-10,15”.

Returns:

  • (Object, nil)

    List of allowed VLANs in a given trunk port. If C(mode=trunk), these are the only VLANs that will be configured on the trunk, i.e. “2-10,15”.



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

attribute :trunk_allowed_vlans

#trunk_vlansString?

Returns List of VLANs to be configured in trunk port. If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk.

Returns:

  • (String, nil)

    List of VLANs to be configured in trunk port. 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_l2_interface.rb', line 28

attribute :trunk_vlans