Class: Ansible::Ruby::Modules::Nxos_switchport
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Nxos_switchport
- Defined in:
- lib/ansible/ruby/modules/generated/network/nxos/nxos_switchport.rb
Overview
Manages Layer 2 interfaces
Instance Method Summary collapse
-
#access_vlan ⇒ Integer?
If C(mode=access), used as the access VLAN ID.
-
#interface ⇒ String?
Full name of the interface, i.e.
-
#mode ⇒ :access, ...
Mode for the Layer 2 port.
-
#native_vlan ⇒ Integer?
If C(mode=trunk), used as the trunk native VLAN ID.
-
#state ⇒ :present, ...
Manage the state of the resource.
-
#trunk_allowed_vlans ⇒ Object?
If C(mode=trunk), these are the only VLANs that will be configured on the trunk, i.e.
-
#trunk_vlans ⇒ String?
If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk.
Methods inherited from Base
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_vlan ⇒ Integer?
Returns 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 |
#interface ⇒ String?
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_switchport.rb', line 16 attribute :mode |
#native_vlan ⇒ Integer?
Returns 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.
32 |
# File 'lib/ansible/ruby/modules/generated/network/nxos/nxos_switchport.rb', line 32 attribute :state |
#trunk_allowed_vlans ⇒ Object?
Returns 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_vlans ⇒ String?
Returns 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 |