Class: Ansible::Ruby::Modules::Junos_l2_interface
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Junos_l2_interface
- Defined in:
- lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb
Overview
This module provides declarative management of Layer-2 interface on Juniper JUNOS network devices.
Instance Method Summary collapse
-
#access_vlan ⇒ String?
Configure given VLAN in access port.
-
#active ⇒ Boolean?
Specifies whether or not the configuration is active or deactivated.
-
#aggregate ⇒ Array<Hash>, ...
List of Layer-2 interface definitions.
-
#description ⇒ String?
Description of Interface.
-
#enhanced_layer ⇒ Boolean?
True if your device has Enhanced Layer 2 Software (ELS).
-
#mode ⇒ :access, ...
Mode in which interface needs to be configured.
-
#name ⇒ String?
Name of the interface excluding any logical unit number.
-
#native_vlan ⇒ Integer?
Native VLAN to be configured in trunk port.
-
#state ⇒ :present, ...
State of the Layer-2 Interface configuration.
-
#trunk_vlans ⇒ Array<String>, ...
List of VLAN names to be configured in trunk port.
-
#unit ⇒ Integer?
Logical interface number.
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 ⇒ String?
Returns Configure given VLAN in access port. The value of C(access_vlan) should be vlan name.
28 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 28 attribute :access_vlan |
#active ⇒ Boolean?
Returns Specifies whether or not the configuration is active or deactivated.
52 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 52 attribute :active |
#aggregate ⇒ Array<Hash>, ...
Returns List of Layer-2 interface definitions.
20 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 20 attribute :aggregate |
#description ⇒ String?
Returns Description of Interface.
16 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 16 attribute :description |
#enhanced_layer ⇒ Boolean?
Returns True if your device has Enhanced Layer 2 Software (ELS).
40 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 40 attribute :enhanced_layer |
#mode ⇒ :access, ...
Returns Mode in which interface needs to be configured.
24 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 24 attribute :mode |
#name ⇒ String?
Returns Name of the interface excluding any logical unit number.
12 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 12 attribute :name |
#native_vlan ⇒ Integer?
Returns Native VLAN to be configured in trunk port. The value of C(native_vlan) should be vlan id.
36 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 36 attribute :native_vlan |
#state ⇒ :present, ...
Returns State of the Layer-2 Interface configuration.
48 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 48 attribute :state |
#trunk_vlans ⇒ Array<String>, ...
Returns List of VLAN names to be configured in trunk port. The value of C(trunk_vlans) should be list of vlan names.
32 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 32 attribute :trunk_vlans |
#unit ⇒ Integer?
Returns Logical interface number. Value of C(unit) should be of type integer.
44 |
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 44 attribute :unit |