Class: Ansible::Ruby::Modules::Ce_stp

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

Overview

Manages STP configurations 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

#bpdu_filter:enable, ...

Returns Specify a port as a BPDU filter port.

Returns:

  • (:enable, :disable, nil)

    Specify a port as a BPDU filter port.



49
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 49

attribute :bpdu_filter

#bpdu_protection:enable, ...

Returns Configure BPDU protection on an edge port. This function prevents network flapping caused by attack packets.

Returns:

  • (:enable, :disable, nil)

    Configure BPDU protection on an edge port. This function prevents network flapping caused by attack packets.



28
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 28

attribute :bpdu_protection

#costObject?

Returns Set the path cost of the current port. The default instance is 0.

Returns:

  • (Object, nil)

    Set the path cost of the current port. The default instance is 0.



53
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 53

attribute :cost

#edged_port:enable, ...

Returns Set the current port as an edge port.

Returns:

  • (:enable, :disable, nil)

    Set the current port as an edge port.



45
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 45

attribute :edged_port

#interfaceObject?

Returns Interface name. If the value is C(all), will apply configuration to all interfaces. if the value is a special name, only support input the full name.

Returns:

  • (Object, nil)

    Interface name. If the value is C(all), will apply configuration to all interfaces. if the value is a special name, only support input the full name.



42
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 42

attribute :interface

#loop_protection:enable, ...

Returns Enable loop protection on the current port.

Returns:

  • (:enable, :disable, nil)

    Enable loop protection on the current port.



60
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 60

attribute :loop_protection

#root_protection:enable, ...

Returns Enable root protection on the current port.

Returns:

  • (:enable, :disable, nil)

    Enable root protection on the current port.



56
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 56

attribute :root_protection

#state:present, ...

Returns Specify desired state of the resource.

Returns:

  • (:present, :absent, nil)

    Specify desired state of the resource.



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

attribute :state

#stp_converge:fast, ...

Returns STP convergence mode. Fast means set STP aging mode to Fast. Normal means set STP aging mode to Normal.

Returns:

  • (:fast, :normal, nil)

    STP convergence mode. Fast means set STP aging mode to Fast. Normal means set STP aging mode to Normal.



24
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 24

attribute :stp_converge

#stp_enable:enable, ...

Returns Enable or disable STP on a switch.

Returns:

  • (:enable, :disable, nil)

    Enable or disable STP on a switch.



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

attribute :stp_enable

#stp_mode:stp, ...

Returns Set an operation mode for the current MSTP process. The mode can be STP, RSTP, or MSTP.

Returns:

  • (:stp, :rstp, :mstp, nil)

    Set an operation mode for the current MSTP process. The mode can be STP, RSTP, or MSTP.



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

attribute :stp_mode

#tc_protection:enable, ...

Returns Configure the TC BPDU protection function for an MSTP process.

Returns:

  • (:enable, :disable, nil)

    Configure the TC BPDU protection function for an MSTP process.



32
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 32

attribute :tc_protection

#tc_protection_intervalObject?

Returns Set the time the MSTP device takes to handle the maximum number of TC BPDUs and immediately refresh forwarding entries. The value is an integer ranging from 1 to 600, in seconds.

Returns:

  • (Object, nil)

    Set the time the MSTP device takes to handle the maximum number of TC BPDUs and immediately refresh forwarding entries. The value is an integer ranging from 1 to 600, in seconds.



36
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 36

attribute :tc_protection_interval

#tc_protection_thresholdObject?

Returns Set the maximum number of TC BPDUs that the MSTP can handle. The value is an integer ranging from 1 to 255. The default value is 1 on the switch.

Returns:

  • (Object, nil)

    Set the maximum number of TC BPDUs that the MSTP can handle. The value is an integer ranging from 1 to 255. The default value is 1 on the switch.



39
# File 'lib/ansible/ruby/modules/generated/network/cloudengine/ce_stp.rb', line 39

attribute :tc_protection_threshold