Class: Ansible::Ruby::Modules::Net_l2_interface
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Net_l2_interface
- Defined in:
- lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb
Overview
This module provides declarative management of Layer-2 interface on network devices.
Instance Method Summary collapse
-
#access_vlan ⇒ Integer?
Configure given VLAN in access port.
-
#aggregate ⇒ Object?
List of Layer-2 interface definitions.
-
#mode ⇒ :access, ...
Mode in which interface needs to be configured.
-
#name ⇒ String?
Name of the interface excluding any logical unit number.
-
#native_vlan ⇒ Object?
Native VLAN to be configured in trunk port.
-
#state ⇒ :present, ...
State of the Layer-2 Interface configuration.
-
#trunk_allowed_vlans ⇒ Object?
List of allowed VLAN’s in a given trunk port.
-
#trunk_vlans ⇒ Object?
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.
23 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 23 attribute :access_vlan |
#aggregate ⇒ Object?
Returns List of Layer-2 interface definitions.
16 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 16 attribute :aggregate |
#mode ⇒ :access, ...
Returns Mode in which interface needs to be configured.
19 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 19 attribute :mode |
#name ⇒ String?
Returns Name of the interface excluding any logical unit number.
12 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 12 attribute :name |
#native_vlan ⇒ Object?
Returns Native VLAN to be configured in trunk port.
30 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 30 attribute :native_vlan |
#state ⇒ :present, ...
Returns State of the Layer-2 Interface configuration.
36 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 36 attribute :state |
#trunk_allowed_vlans ⇒ Object?
Returns List of allowed VLAN’s in a given trunk port.
33 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 33 attribute :trunk_allowed_vlans |
#trunk_vlans ⇒ Object?
Returns List of VLANs to be configured in trunk port.
27 |
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 27 attribute :trunk_vlans |