< Home

Data Model

The configuration model file matching STP management is huawei-stp.yang.

Table 1 STP management

Object

Description

Value

Remarks

/huawei-stp:stp/enable

Indicates whether to enable STP.

The value is of the Boolean type:
  • true: Enable STP.
  • false: Disable STP.

NA

/huawei-stp:stp/mode

Indicates the STP mode.

The value is of the enumerated type:
  • mstp
  • rstp
  • stp
  • vbst

NA

/huawei-stp:stp/bpdu-protection

Indicates whether to enable BPDU protection.

The value is of the Boolean type:
  • true: Enable BPDU protection.
  • false: Disable BPDU protection.

NA

/huawei-stp:stp/edged-port-enable

Indicates whether to configure a port as an edge port.

The value is of the enumerated type:
  • true: Configure the current port as an edge port.
  • false: Configure the current port as a non-edge port.
  • normal: Configure the current port as a non-edge port.

NA

/huawei-stp:stp/stp-priority/instance-id

Indicates the STP instance ID.

The value is an integer in the range from 0 to 4094.

NA

/huawei-stp:stp/stp-priority/priority

Indicates the switching device priority.

The value is an integer in the range from 0 to 61440. The value must be an integer multiple of 4096, for example, 0, 4096, and 8192.

NA

/huawei-stp:stp/stp-mstp/process-list/processid

Indicates an MSTP process.

The value is an integer in the range from 1 to 31.

NA

/huawei-stp:stp/stp-mstp/process-list/bpdu-protection

Indicates whether to enable BPDU protection in an MSTP process.

The value is of the Boolean type:
  • true: Enable BPDU protection in an MSTP process.
  • false: Disable BPDU protection in an MSTP process.

NA

/huawei-stp:stp/stp-mstp/process-list/stp-priority/instance-id

Indicates the instance ID of an MSTP process.

The value is an integer in the range from 0 to 4094.

NA

/huawei-stp:stp/stp-mstp/process-list/stp-priority/priority

Indicates the instance priority of an MSTP process.

The value is an integer in the range from 0 to 61440.

NA

/huawei-stp:stp/stp-mstp/process-list/mode

Indicates the STP mode of an MSTP process.

The value is of the enumerated type:
  • mstp
  • rstp
  • stp

NA

/huawei-stp:stp/stp-mstp/process-list/enabled

Indicates whether to enable STP in an MSTP process.

The value is of the Boolean type:
  • true: Enable STP in an MSTP process.
  • false: Disable STP in an MSTP process.

NA

/huawei-stp:stp/stp-mstp/process-list/tc-notify/tc-notify-process

Indicates whether to enable TC notification in an MSTP process.

The value is of the Boolean type:
  • true: Enable TC notification in an MSTP process.
  • false: Disable TC notification in an MSTP process.

NA

/huawei-stp:stp/region-configuration/region-name

Indicates the MST region name.

The value is a string of 1 to 32 characters.

NA

/huawei-stp:stp/region-configuration /revision-level

Indicates the revision level of an MST region.

The value is an integer in the range from 0 to 65535.

NA

/huawei-stp:stp/region-configuration/instance/instance-id

Indicates the instance ID of an MST region.

The value is an integer in the range from 0 to 4094.

NA

/huawei-stp:stp/region-configuration/instance/map-vlan

Indicates the mapping VLAN of an MST region.

The value is an integer in the range from 1 to 4094.

NA

/huawei-stp:stp/auto-recovery/cause

Indicates the auto-recovery cause of an interface in Error-Down state.

The value is of the enumerated type: bpdu-protection.

NA

/huawei-stp:stp/auto-recovery/interval

Indicates the auto-recovery interval.

The value is an integer in the range from 30 to 86400.

NA

/ietf-interfaces:interface/huawei-stp:stp/enable

Indicates whether to enable STP on an interface.

The value is of the Boolean type:
  • true: Enable STP on an interface.
  • false: Disable STP on an interface.

NA

/ietf-interfaces:interface/huawei-stp:stp/edged-port-enable

Indicates whether to configure a port as an edge port.

The value is of the enumerated type:
  • true: Configure the current port as an edge port.
  • false: Configure the current port as a non-edge port.
  • normal: Restore the default attribute of the current port.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-port-instance/ port-instance/instance-id

Indicates the instance ID of an interface.

The value is an integer in the range from 0 to 4094.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-port-instance/port-instance/cost

Indicates the interface cost of an instance.

The value is an integer in the range from 1 to 200000000.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-port-instance/port-instance/port-priority

Indicates the interface priority of an instance.

The value is an integer in the range from 0 to 240. The value must be an integer multiple of 16, for example, 0, 16, or 32.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp/stp-mstp-instance/process-mstp/process-mstp-id

Indicates the process ID of an interface.

The value is an integer in the range from 1 to 31.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp/stp-mstp-instance/process-mstp/instance-id

Indicates the instance ID of a process on an interface.

The value is an integer in the range from 0 to 4094.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp/stp-mstp-instance/process-mstp/port-priority

Indicates the interface priority of a specified instance in a specified process.

The value is an integer in the range from 0 to 240. The value must be an integer multiple of 16, for example, 0, 16, or 32.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp/stp-mstp-instance/process-mstp/cost

Indicates the interface cost of a specified process.

The value is an integer in the range from 1 to 200000000.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp-bind/process-list/process-id

Indicates the ID of a process bound to an interface.

The value is an integer in the range from 1 to 31.

NA

/ietf-interfaces:interface/huawei-stp:stp/stp-mstp-bind/process-list/link-share-port

Indicates whether to enable process sharing on an interface.

The value is of the Boolean type:
  • true: Enable process sharing on an interface.
  • false: Disable process sharing on an interface.

NA

/huawei-stp:stp-state-get/request-num

Indicates the maximum number of spanning tree state records that can be queried at a time.

The value is an integer in the range from 1 to 1024. If this object is not specified, 1024 records are queried by default.

NA

/huawei-stp:stp-state-get/filter-condition/process-id

Indicates the ID of an MSTP process.

The value is an integer in the range from 0 to 256. The default value is 0 during the query of VBST state information.

NA

/huawei-stp:stp-state-get/filter-condition/mstid-vlan-id

Indicates the spanning tree instance ID or VLAN ID.

The value is an integer in the range from 0 to 4094.

NA

/huawei-stp:stp-state-get/filter-condition/interface-name

Indicates the name of an interface.

The value is a string of 1 to 63 characters and consists of the interface type and interface number.

NA

/huawei-stp:stp-state-get/get-next-request/last-process-id

Indicates the MSTP process ID during the last successful query of the spanning tree state.

The value is an integer in the range from 0 to 256. The default value is 0 during the query of VBST state information.

  • This object is optional. last-process-id, last-mstid-vlan-id, and last-interface-name must be either all configured or none configured.
  • The value of this object must be the same as that of the /huawei-stp:stp-state-get/filter-condition/process-id object if the /huawei-stp:stp-state-get/filter-condition/process-id object is configured.

/huawei-stp:stp-state-get/get-next-request/last-mstid-vlan-id

Specifies the spanning tree instance ID or VLAN ID during the last successful query of the spanning tree state.

The value is an integer in the range from 0 to 4094.

  • This object is optional. last-process-id, last-mstid-vlan-id, and last-interface-name must be either all configured or none configured.
  • The value of this object must be the same as that of the /huawei-stp:stp-state-get/filter-condition/mstid-vlan-id object if the /huawei-stp:stp-state-get/filter-condition/mstid-vlan-id object is configured.

/huawei-stp:stp-state-get/get-next-request/last-interface-name

Indicates the interface name during the last successful query of the spanning tree state.

The value is a string of 1 to 63 characters and consists of the interface type and interface number.

  • This object is optional. last-process-id, last-mstid-vlan-id, and last-interface-name must be either all configured or none configured.
  • The value of this object must be the same as that of the /huawei-stp:stp-state-get/filter-condition/interface-name object if the /huawei-stp:stp-state-get/filter-condition/interface-name object is configured.

/huawei-stp:stp-state-get/has-more

Indicates whether there is spanning tree state information that is not queried.

The value is of the Boolean type:
  • true: There is spanning tree state information that is not queried.
  • false: All spanning tree state information is queried.

NA

/huawei-stp:stp-state-get/stp-state/process-id

Indicates the queried MSTP process ID.

The value is an integer in the range from 0 to 256. The default value is 0 during the query of VBST state information and statistics.

NA

/huawei-stp:stp-state-get/stp-state/mstid-vlan-id

Indicates the queried spanning tree instance ID or VLAN ID.

The value is an integer in the range from 0 to 4094.

NA

/huawei-stp:stp-state-get/stp-state/interface-name

Indicates the queried interface name.

The value is a string of 1 to 63 characters and consists of the interface type and interface number.

NA

/huawei-stp:stp-state-get/stp-state/mode

Indicates the queried spanning tree mode.

The value is of the enumerated type:

  • mstp
  • rstp
  • stp
  • vbst

NA

/huawei-stp:stp-state-get/stp-state/role

Indicates the queried interface role.

The value is of the enumerated type:

  • root: root port
  • designated: designated port
  • alternate: alternate port
  • backup: backup port
  • master: master port
  • disable: disabled port

NA

/huawei-stp:stp-state-get/stp-state/status

Indicates the queried interface state.

The value is of the enumerated type:

  • disabled
  • listening
  • learning
  • forwarding
  • blocking

NA

/huawei-stp:stp-state-get/stp-state/protection

Indicates the queried interface protection type.

The value is of the enumerated type:

  • none: The protection function is not configured.
  • root-protection: Root protection
  • loop-protection: Loop protection
  • loopback: Loopback detection
  • bpdu-protection: BPDU protection
  • pvid-consistency: The PVIDs of directly connected interfaces are different. Only VBST supports this type.
  • loop-protection bpdu-protection: Loop protection and BPDU protection
  • root-protection bpdu-protection: Root protection and BPDU protection

NA

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >