Class: Ansible::Ruby::Modules::Net_l2_interface

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

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

Returns Configure given VLAN in access port.

Returns:

  • (Integer, nil)

    Configure given VLAN in access port.



23
# File 'lib/ansible/ruby/modules/generated/network/layer2/net_l2_interface.rb', line 23

attribute :access_vlan

#aggregateObject?

Returns List of Layer-2 interface definitions.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:access, :trunk, nil)

    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

#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/layer2/net_l2_interface.rb', line 12

attribute :name

#native_vlanObject?

Returns Native VLAN to be configured in trunk port.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:present, :absent, nil)

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

Returns List of allowed VLAN’s in a given trunk port.

Returns:

  • (Object, nil)

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

Returns List of VLANs to be configured in trunk port.

Returns:

  • (Object, nil)

    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