Class: Ansible::Ruby::Modules::Ce_switchport

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb

Overview

Manages Layer 2 switchport interfaces on HUAWEI CloudEngine switches.

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

Returns If C(mode=access), used as the access VLAN ID, in the range from 1 to 4094.

Returns:

  • (Object, nil)

    If C(mode=access), used as the access VLAN ID, in the range from 1 to 4094.



20
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 20

attribute :access_vlan

#interfaceObject

Returns Full name of the interface, i.e. 40GE1/0/22.

Returns:

  • (Object)

    Full name of the interface, i.e. 40GE1/0/22.



12
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 12

attribute :interface

#mode:access, ...

Returns The link type of an interface.

Returns:

  • (:access, :trunk, nil)

    The link type of an interface.



16
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 16

attribute :mode

#native_vlanObject?

Returns If C(mode=trunk), used as the trunk native VLAN ID, in the range from 1 to 4094.

Returns:

  • (Object, nil)

    If C(mode=trunk), used as the trunk native VLAN ID, in the range from 1 to 4094.



23
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 23

attribute :native_vlan

#state:present, ...

Returns Manage the state of the resource.

Returns:

  • (:present, :absent, :unconfigured, nil)

    Manage the state of the resource.



29
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 29

attribute :state

#trunk_vlansObject?

Returns If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk, such as 2-10 or 2,5,10-15, etc.

Returns:

  • (Object, nil)

    If C(mode=trunk), used as the VLAN range to ADD or REMOVE from the trunk, such as 2-10 or 2,5,10-15, etc.



26
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 26

attribute :trunk_vlans