Class: Ansible::Ruby::Modules::Junos_l2_interface

Inherits:
Base show all
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

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_vlanString?

Returns Configure given VLAN in access port. The value of C(access_vlan) should be vlan name.

Returns:

  • (String, nil)

    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

#activeBoolean?

Returns Specifies whether or not the configuration is active or deactivated.

Returns:

  • (Boolean, nil)

    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

#aggregateArray<Hash>, ...

Returns List of Layer-2 interface definitions.

Returns:

  • (Array<Hash>, Hash, nil)

    List of Layer-2 interface definitions.



20
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 20

attribute :aggregate

#descriptionString?

Returns Description of Interface.

Returns:

  • (String, nil)

    Description of Interface.



16
# File 'lib/ansible/ruby/modules/generated/network/junos/junos_l2_interface.rb', line 16

attribute :description

#enhanced_layerBoolean?

Returns True if your device has Enhanced Layer 2 Software (ELS).

Returns:

  • (Boolean, nil)

    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.

Returns:

  • (:access, :trunk, nil)

    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

#nameString?

Returns Name of the interface excluding any logical unit number.

Returns:

  • (String, nil)

    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_vlanInteger?

Returns Native VLAN to be configured in trunk port. The value of C(native_vlan) should be vlan id.

Returns:

  • (Integer, nil)

    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.

Returns:

  • (:present, :absent, nil)

    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_vlansArray<String>, ...

Returns List of VLAN names to be configured in trunk port. The value of C(trunk_vlans) should be list of vlan names.

Returns:

  • (Array<String>, String, nil)

    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

#unitInteger?

Returns Logical interface number. Value of C(unit) should be of type integer.

Returns:

  • (Integer, nil)

    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