Skip to content
Ask AI

MSTP

Multiple Spanning Tree Protocol.

URLGETPOSTPATCHPUTDELETE
/rest/v1/running/mstpYNYNN
/rest/v1/running/mstp/globalYYYYY
/rest/v1/running/mstp/instances/{id}YYYYY
/rest/v1/running/mstp/instances/{id}/ports/{name}YYYYY
/rest/v1/running/mstp/ports/{name}YYYYY
/rest/v1/rpc/show-mstp-bridgeNYNNN
/rest/v1/rpc/show-mstp-briefNYNNN
/rest/v1/rpc/show-mstp-interfaceNYNNN
/rest/v1/rpc/show-mstp-mstconfidNYNNN
/rest/v1/rpc/show-mstp-statusNYNNN
/rest/v1/rpc/show-mstp-treeNYNNN
/rest/v1/rpc/show-mstp-treeportNYNNN
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-bridge
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-brief
{
"name": "Ethernet12"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-interface
{
"name": "Ethernet12"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-mstconfid
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-status
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-tree
{
"instance": "10"
}
POST HTTPS://{switch IP}/rest/v1/rpc/show-mstp-treeport
{
"name": "Ethernet12",
"instance": "10"
}
GET HTTPS://{switch IP}/rest/v1/running/mstp
POST HTTPS://{switch IP}/rest/v1/running/mstp/global
{
"name": "112233445566",
"enabled": "false",
"forward-delay": 20,
"hello-time": 10,
"max-age": 30
}
POST HTTPS://{switch IP}/rest/v1/running/mstp/instances/1/ports
{
"name": "Ethernet12",
"internal-cost": 200,
"priority": 10
}
POST HTTPS://{switch IP}/rest/v1/running/mstp/instances/1/ports
{
"name": "Ethernet12",
"internal-cost": 200,
"priority": 10
}
POST HTTPS://{switch IP}/rest/v1/running/mstp/ports
{
"name": "Ethernet12",
"external-cost": 10,
"edge-port": "true",
"auto-edge-port": "false",
"bpdu-filter": "false",
"bpdu-guard": "false"
}

Tree Diagrams

+--rw mstp
+--rw global
| +--rw name?
| +--ro mode?
| +--rw enabled?
| +--rw forward-delay?
| +--rw hello-time?
| +--rw max-age?
+--rw instances
| +--rw instance* [id]
| +--rw id
| +--rw priority?
| +--rw vlans*
| +--rw ports
| +--rw port* [name]
| +--rw name
| +--rw internal-cost?
| +--rw priority?
+--rw ports
+--rw port* [name]
+--rw name
+--rw external-cost?
+--rw edge-port?
+--rw auto-edge-port?
+--rw bpdu-filter?
+--rw bpdu-guard?
NameRequiredType/RangeDescription
mstpMPath-only node, has no configurable value.
Multi Spanning-tree protocol configuration
globalM(sub-property of mstp)
Path-only node, has no configurable value.
Global configuration
nameOstring(sub-property of global)
MST Region name
modeROstring(sub-property of global)
Currently only mstp mode is supported, not configurable
Default value: “mstp”
enabledO”true"
"false”(sub-property of global)
MSTP status, true means MSTP is enabled, false means MSTP is disabled
Default value: “false”
forward-delayO4..30(sub-property of global)
Delay time for device state migration, in seconds
Default value: 15
hello-timeO1..10(sub-property of global)
MSTP hello time, in seconds
Default value: 2
max-ageO10..1000000(sub-property of global)
A parameter used to determine whether a configuration message has been stored in the device for an out-of-date period of time, and the device will discard the out-of-date configuration message, in seconds
Default value: 20

Tree Diagrams

+--rw mstp
+--rw instances
| +--rw instance* [id]
| +--rw id
| +--rw priority?
| +--rw vlans*
| +--rw ports
| +--rw port* [name]
| +--rw name
| +--rw internal-cost?
| +--rw priority?

Table of Properties

NameRequiredType/RangeDescription
mstpMPath-only node, has no configurable value.
Multi Spanning-tree protocol configuration
instancesM(sub-property of mstp)
Path-only node, has no configurable value.
Multi Spanning-tree protocol configuration
idM0..63(sub-property of instances)
MSTP instance ID
priorityO0..15(sub-property of instances)
MSTP Region priority, once mstp is enabled the value is set to 8 by default.
Default value: 8
vlansO1..4094(sub-property of instances)
VLAN ID
portsM(sub-property of instances)
Path-only node, has no configurable value.
nameMEthernet name
Lag1..9999(sub-property of ports)
Port name
internal-costO0..4294967295(sub-property of ports)
The port internal path cost for the MSTI
Default value: 200000000
priorityO0..15(sub-property of ports)
The port priority for the MSTI
Default value: 8

#Tree Diagrams

+--rw mstp
+--rw ports
+--rw port* [name]
+--rw name
+--rw external-cost?
+--rw edge-port?
+--rw auto-edge-port?
+--rw bpdu-filter?
+--rw bpdu-guard?

Table of Properties

NameRequiredType/RangeDescription
mstpMPath-only node, has no configurable value.
Multi Spanning-tree protocol configuration
portsM(sub-property of mstp)
Path-only node, has no configurable value.
Enclosing container for the list of interface references
nameMEthernet name
Lag1..9999(sub-property of ports)
Interface name
external-costO0..4294967295(sub-property of ports)
The port external path cost for the CIST
Default value: 200000000
edge-portO”true"
"false”(sub-property of ports)
Indicates that the interface is configured as an edge port. Edge ports are characterized by the fact that they connect directly to end devices and not to other network devices
Default value: “false”
auto-edge-portO”true"
"false”(sub-property of ports)
Automatic selection of edge-port
Default value: “true”
bpdu-filterO”true"
"false”(sub-property of ports)
When set true, this feature can prevent the transmission of BPDU (Bridge Protocol Data Unit) packets on the interface, which is typically used to optimize network performance or enhance network security in specific scenarios
Default value: “false”
bpdu-guardO”true"
"false”(sub-property of ports)
When a port receives a BPDU message, if BPDU protection is enabled The port will be forced to set to the non-forwarding state to prevent potential loop problems.
Default value: “false”

#Tree Diagrams

+---x show-mstp-status
| +--ro output
| +--ro data?

Table of Properties

NameRequiredType/RangeDescription
show-mstp-statusMPath-only node, has no configurable value.
Show MSTP instance port status.
dataRO(sub-property of output)

Tree Diagrams

+---x show-mstp-interface
| +---w input
| | +---w name?
| +--ro output
| +--ro data?
NameRequiredType/RangeDescription
show-mstp-interfaceMPath-only node, has no configurable value.
Show MSTP interface configuration and status.
nameOEthernet name
Lag1..9999(sub-property of input)
|

| data | RO | | (sub-property of output) |

Tree Diagrams

+---x show-mstp-brief
| +---w input
| | +---w name?
| +--ro output
| +--ro data?
NameRequiredType/RangeDescription
show-mstp-briefMPath-only node, has no configurable value.
Show port state for the CIST.
nameOEthernet name
Lag1..9999(sub-property of input)
|

| data | RO | | (sub-property of output) |

Tree Diagrams

+---x show-mstp-bridge
| +--ro output
| +--ro data?
NameRequiredType/RangeDescription
show-mstp-bridgeMPath-only node, has no configurable value.
Show bridge state for the CIST.
dataRO(sub-property of output)

Tree Diagrams

+---x show-mstp-tree
| +---w input
| | +---w instance?
| +--ro output
| +--ro data?
NameRequiredType/RangeDescription
show-mstp-treeMPath-only node, has no configurable value.
Show bridge state for the given MSTI.
instanceO0..63(sub-property of input)
dataRO(sub-property of output)

Tree Diagrams

+---x show-mstp-mstconfid
| +--ro output
| +--ro data?
NameRequiredType/RangeDescription
show-mstp-mstconfidMPath-only node, has no configurable value.
Show MSTP mstconfid.
dataRO(sub-property of output)

Tree Diagrams

+---x show-mstp-treeport
+---w input
| +---w name?
| +---w instance?
+--ro output
+--ro data?
NameRequiredType/RangeDescription
show-mstp-treeportMPath-only node, has no configurable value.
Show port detailed state for the given MSTI.
nameOEthernet name
Lag1..9999(sub-property of input)
|

| instance | O | 0..63 | (sub-property of input) | | data | RO | | (sub-property of output) |