Class: Ansible::Ruby::Modules::Nxos_l2_interface
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Nxos_l2_interface
- 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
-
#access_vlan ⇒ Integer?
Configure given VLAN in access port.
-
#aggregate ⇒ Array<Hash>, ...
List of Layer-2 interface definitions.
-
#mode ⇒ :access, ...
Mode in which interface needs to be configured.
-
#name ⇒ String
Full name of the interface excluding any logical unit number, i.e.
-
#native_vlan ⇒ Integer?
Native VLAN to be configured in trunk port.
-
#state ⇒ :present, ...
Manage the state of the Layer-2 Interface configuration.
-
#trunk_allowed_vlans ⇒ Object?
List of allowed VLANs in a given trunk port.
-
#trunk_vlans ⇒ String?
List of VLANs to be configured in trunk port.
Methods inherited from Base
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_vlan ⇒ Integer?
Returns 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 |
#aggregate ⇒ Array<Hash>, ...
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 16 attribute :mode |
#name ⇒ String
Returns 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_vlan ⇒ Integer?
Returns 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.
39 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 39 attribute :state |
#trunk_allowed_vlans ⇒ Object?
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”.
32 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 32 attribute :trunk_allowed_vlans |
#trunk_vlans ⇒ String?
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.
28 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_l2_interface.rb', line 28 attribute :trunk_vlans |