Class: Ansible::Ruby::Modules::Ce_switchport
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ce_switchport
- 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
-
#access_vlan ⇒ Object?
If C(mode=access), used as the access VLAN ID, in the range from 1 to 4094.
-
#interface ⇒ Object
Full name of the interface, i.e.
-
#mode ⇒ :access, ...
The link type of an interface.
-
#native_vlan ⇒ Object?
If C(mode=trunk), used as the trunk native VLAN ID, in the range from 1 to 4094.
-
#state ⇒ :present, ...
Manage the state of the resource.
-
#trunk_vlans ⇒ Object?
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.
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 ⇒ Object?
Returns 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 |
#interface ⇒ Object
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 16 attribute :mode |
#native_vlan ⇒ Object?
Returns 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.
29 |
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 29 attribute :state |
#trunk_vlans ⇒ Object?
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.
26 |
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_switchport.rb', line 26 attribute :trunk_vlans |