STP-Netconf
此内容尚不支持你的语言。
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /show-stp | — | — | Y |
| /stp | Y | merge, replace, create | — |
| /stp/global | Y | merge, replace, create, delete | — |
| /stp/interfaces/{name} | Y | merge, replace, create, delete | — |
| /stp/mstp | Y | merge, replace, create, delete | — |
| /stp/mstp/config | Y | merge, replace, create, delete | — |
| /stp/mstp/instances/{id} | Y | merge, replace, create, delete | — |
| /stp/mstp/instances/{id}/interfaces/{name} | Y | merge, replace, create, delete | — |
| /stp/rstp | Y | merge, replace, create, delete | — |
| /stp/rstp/config | Y | merge, replace, create, delete | — |
| /stp/rstp/interfaces/{name} | Y | merge, replace, create, delete | — |
| /stp/stp | Y | merge, replace, create, delete | — |
| /stp/stp/config | Y | merge, replace, create, delete | — |
| /stp/stp/interfaces/{name} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”This chapter provides examples on how to use Netconf to manage stp configurations on AsterNOS devices.
Create STP
Section titled “Create STP”Request example to create stp instance 3 via edit-config
<config> <top> <stp> <global> <enabled>true</enabled> <protocol>mstp</protocol> </global> <mstp> <config> <forward-delay>16</forward-delay> </config> <instances> <instance> <id>3</id> <priority>5</priority> <vlans>100</vlans> <interfaces> <interface> <name>Ethernet1</name> <priority>11</priority> </interface> </interfaces> </instance> </instances> </mstp> <interfaces> <interface> <name>Ethernet1</name> <bpdu-filter>true</bpdu-filter> <bpdu-guard>true</bpdu-guard> </interface> </interfaces> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c5b484e2-f2ae-48b4-8261-fbd31dc35674"> <ok/></rpc-reply>GET All STP Configurations
Section titled “GET All STP Configurations”Request example to get all stp configurations via get-config
<filter type="subtree"> <top> <stp/> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:61ceaab6-5af0-4461-8cd2-e0924f9dab69"> <data> <top> <stp xmlns="http://asterfusion.com/ns/yang/asternos-stp"> <global> <enabled>true</enabled> <protocol>mstp</protocol> </global> <stp/> <rstp/> <mstp> <config> <forward-delay>16</forward-delay> <hello-time>2</hello-time> <max-age>20</max-age> </config> <instances> <instance> <id>0</id> <priority>8</priority> </instance> <instance> <id>3</id> <priority>5</priority> <vlans>100</vlans> <vlans>30</vlans> <interfaces> <interface> <name>Ethernet1</name> <priority>11</priority> </interface> </interfaces> </instance> </instances> </mstp> <interfaces> <interface> <name>Ethernet1</name> <bpdu-filter>true</bpdu-filter> <bpdu-guard>true</bpdu-guard> </interface> </interfaces> </stp> </top> </data></rpc-reply>Replace STP Mode
Section titled “Replace STP Mode”Request example to replace stp mode to stp via edit-config
<config> <top> <stp operation="replace"> <global> <enabled>true</enabled> <protocol>stp</protocol> </global> <stp> <config> <forward-delay>16</forward-delay> </config> <interfaces> <interface> <name>Ethernet1</name> <priority>3</priority> </interface> </interfaces> </stp> <interfaces> <interface> <name>Ethernet1</name> <bpdu-filter>true</bpdu-filter> <bpdu-guard>true</bpdu-guard> </interface> </interfaces> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:dc4b64f2-8e74-42db-b34d-fec5be9f97b6"> <ok/></rpc-reply>Disable STP Service
Section titled “Disable STP Service”Request example to disable stp via edit-config
<config> <top> <stp> <global operation="merge"> <enabled>false</enabled> </global> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d93c885b-eb49-45e3-9755-a99279840c57"> <ok/></rpc-reply>Create STP Instances
Section titled “Create STP Instances”Request example to create stp instances via edit-config
<config> <top> <stp> <mstp> <config> <forward-delay>16</forward-delay> </config> <instances> <instance> <id>1</id> <priority>4</priority> <vlans>101</vlans> </instance> </instances> </mstp> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:aa560eb6-5868-49e4-9fa3-10820603983c"> <ok/></rpc-reply>Get All STP Instances
Section titled “Get All STP Instances”Request example to get all stp instances via get-config
<filter type="subtree"> <top> <stp> <mstp> <instances/> </mstp> </stp> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:9d08a754-1179-4193-a030-741936d47914"> <data> <top> <stp xmlns="http://asterfusion.com/ns/yang/asternos-stp"> <mstp> <instances> <instance> <id>0</id> <priority>8</priority> </instance> <instance> <id>1</id> <priority>4</priority> <vlans>101</vlans> </instance> <instance> <id>3</id> <priority>5</priority> <vlans>100</vlans> <interfaces> <interface> <name>Ethernet1</name> <priority>11</priority> </interface> </interfaces> </instance> </instances> </mstp> </stp> </top> </data></rpc-reply>Delete STP Instances
Section titled “Delete STP Instances”Request example to delete specified stp instances 1 via edit-config
<config> <top> <stp> <mstp> <instances> <instance operation="delete"> <id>1</id> </instance> </instances> </mstp> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:58cae6ce-bd38-4003-8ad9-e210ce6b130f"> <ok/></rpc-reply>Change STP Port Priority
Section titled “Change STP Port Priority”Request example to modify specified stp port priority via edit-config
<config> <top> <stp> <mstp> <instances> <instance> <id>1</id> <interfaces> <interface> <name>Ethernet1</name> <priority>7</priority> </interface> </interfaces> </instance> </instances> </mstp> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:e4f15f44-18dd-4db5-87f0-8a321920f841"> <ok/></rpc-reply>Set STP Interface BPDU
Section titled “Set STP Interface BPDU”Request example to set specified stp interface bpdu via edit-config
<config> <top> <stp> <interfaces> <interface> <name>Ethernet1</name> <bpdu-filter>true</bpdu-filter> <bpdu-guard>false</bpdu-guard> </interface> </interfaces> </stp> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b3badfb8-e55e-439e-88bc-e99bc41117de"> <ok/></rpc-reply>Shows Stp Information Of All Stp Instance
Section titled “Shows Stp Information Of All Stp Instance”Request example to show status of all stp instance via rpc show-stp.
<show-stp> <status/></show-stp>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:1babb2d8-a371-49f4-8857-1c765c12d914"> <data xmlns="http://asterfusion.com/ns/yang/asternos-stp"> Spanning-tree Mode: mstp mst_instance port port_role stp_state -------------- --------- ----------- ----------- 3 Ethernet1 Disabled discarding 3 Ethernet3 Designated forwarding 3 Ethernet7 Backup discarding mstpid ['1'] do not bind any vlans </data></rpc-reply>Shows Stp Information Of Specified Stp Instance
Section titled “Shows Stp Information Of Specified Stp Instance”Request example to show status of stp instance via rpc show-stp.
<show-stp> <stp_info> <stpid>1</stpid> </stp_info></show-stp>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:be3ccbb3-38d6-49e6-98e7-68d3fb8514fc"> <data xmlns="http://asterfusion.com/ns/yang/asternos-stp"> Spanning-tree Mode: mstp mst_instance port port_role stp_state -------------- --------- ----------- ----------- 3 Ethernet1 Disabled discarding 3 Ethernet3 Designated forwarding 3 Ethernet7 Backup discarding </data></rpc-reply>Shows Stp Interface Information of Specified Stp Instance
Section titled “Shows Stp Interface Information of Specified Stp Instance”Request example to show status of stp interface via rpc show-stp.
<show-stp> <stp_info> <stpid>1</stpid> <interface_name>Ethernet1</interface_name> </stp_info></show-stp>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:cfa844e5-3e4e-4ca2-91e2-e0029d6bcae7"> <data xmlns="http://asterfusion.com/ns/yang/asternos-stp"> Spanning-tree Mode: mstp mst_instance port port_role stp_state -------------- --------- ----------- ----------- 3 Ethernet1 Disabled discarding </data></rpc-reply>Shows Stp Instances Bind Info
Section titled “Shows Stp Instances Bind Info”Request example to show stp bind info via rpc show-stp.
<show-stp> <bind/></show-stp>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:2365ac63-6ba2-4bc6-bbbc-5bb2c671c7b5"> <data> <vlan_id>100</vlan_id> <stp_id>3</stp_id> </data></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Top-level grouping for Multi spanning-tree model
Section titled “Top-level grouping for Multi spanning-tree model”Tree Diagram
module: asternos-stp +--rw stp +--rw global | +--rw enabled? boolean | +--rw protocol? stp-types:stp-protocol-enumeration +--rw stp | +--rw config | | +--rw forward-delay? uint16 | | +--rw hello-time? uint16 | | +--rw max-age? uint32 | | +--rw priority? uint8 | +--rw interfaces | +--rw interface* [name] | +--rw name union | +--rw priority? uint8 | +--ro state | +--ro role? stp-types:stp-port-role-enumeration | +--ro port-state? stp-types:stp-port-state-enumeration +--rw rstp | +--rw config | | +--rw forward-delay? uint16 | | +--rw hello-time? uint16 | | +--rw max-age? uint32 | | +--rw priority? uint8 | +--rw interfaces | +--rw interface* [name] | +--rw name union | +--rw priority? uint8 | +--ro state | +--ro role? stp-types:stp-port-role-enumeration | +--ro port-state? stp-types:stp-port-state-enumeration +--rw mstp | +--rw config | | +--rw name? string | | +--rw forward-delay? uint16 | | +--rw hello-time? uint16 | | +--rw max-age? uint32 | +--rw instances | +--rw instance* [id] | +--rw id uint16 | +--rw priority? uint8 | +--rw vlans* cmn:vlan-id | +--rw interfaces | +--rw interface* [name] | +--rw name union | +--rw priority? uint8 | +--ro state | +--ro role? stp-types:stp-port-role-enumeration | +--ro port-state? stp-types:stp-port-state-enumeration +--rw interfaces +--rw interface* [name] +--rw name union +--rw bpdu-filter? boolean +--rw bpdu-guard? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| stp | M | Path-only node, has no configurable value. Top-level grouping for Multi spanning-tree model | |
| global | M | Path-only node, has no configurable value. Global configuration | |
| enabled | O | ”true" "false” | MSTP status, true means MSTP is enabled, false means MSTP is disabled Default value: False |
| protocol | O | stp-types:stp-protocol-enumeration | List of the spanning tree protocols enabled on the device |
| stp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for STP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
| rstp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for RSTP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
| mstp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for MSTP | |
| name | O | string (length 1..32) | MST Region name |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| instances | M | Path-only node, has no configurable value. Configuration and operation data for MSTP instances | |
| instance | M | Path-only node, has no configurable value. List of MSTP instances | |
| id | O | 0..255 | MSTP instance ID |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| vlans | O | cmn:vlan-id | VLAN ID |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
| interfaces | M | Path-only node, has no configurable value. Enclosing container for the list of interface references | |
| interface | M | Path-only node, has no configurable value. List of interfaces on which MSTP is enable | |
| name | O | Ethernet name | Interface name |
| bpdu-filter | O | ”true" "false” | Configure mstp interface bpdu filter Default value: False |
| bpdu-guard | O | ”true" "false” | Configure mstp interface bpdu guard Default value: False |
Global configuration
Section titled “Global configuration”Tree Diagram
module: asternos-stp +--rw stp +--rw global +--rw enabled? boolean +--rw protocol? stp-types:stp-protocol-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| global | M | Path-only node, has no configurable value. Global configuration | |
| enabled | O | ”true" "false” | MSTP status, true means MSTP is enabled, false means MSTP is disabled Default value: False |
| protocol | O | stp-types:stp-protocol-enumeration | List of the spanning tree protocols enabled on the device |
Enclosing container for the list of interface references
Section titled “Enclosing container for the list of interface references”Tree Diagram
module: asternos-stp +--rw stp +--rw interfaces +--rw interface* [name] +--rw name union +--rw bpdu-filter? boolean +--rw bpdu-guard? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. Enclosing container for the list of interface references | |
| interface | M | Path-only node, has no configurable value. List of interfaces on which MSTP is enable | |
| name | O | Ethernet name | Interface name |
| bpdu-filter | O | ”true" "false” | Configure mstp interface bpdu filter Default value: False |
| bpdu-guard | O | ”true" "false” | Configure mstp interface bpdu guard Default value: False |
Global configuration
Section titled “Global configuration”Tree Diagram
module: asternos-stp +--rw stp +--rw mstp +--rw config | +--rw name? string | +--rw forward-delay? uint16 | +--rw hello-time? uint16 | +--rw max-age? uint32 +--rw instances +--rw instance* [id] +--rw id uint16 +--rw priority? uint8 +--rw vlans* cmn:vlan-id +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| mstp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for MSTP | |
| name | O | string (length 1..32) | MST Region name |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| instances | M | Path-only node, has no configurable value. Configuration and operation data for MSTP instances | |
| instance | M | Path-only node, has no configurable value. List of MSTP instances | |
| id | O | 0..255 | MSTP instance ID |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| vlans | O | cmn:vlan-id | VLAN ID |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Configuration data for MSTP
Section titled “Configuration data for MSTP”Tree Diagram
module: asternos-stp +--rw stp +--rw mstp +--rw config +--rw name? string +--rw forward-delay? uint16 +--rw hello-time? uint16 +--rw max-age? uint32Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| config | M | Path-only node, has no configurable value. Configuration data for MSTP | |
| name | O | string (length 1..32) | MST Region name |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
Configuration and operation data for MSTP instances
Section titled “Configuration and operation data for MSTP instances”Tree Diagram
module: asternos-stp +--rw stp +--rw mstp +--rw instances +--rw instance* [id] +--rw id uint16 +--rw priority? uint8 +--rw vlans* cmn:vlan-id +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| instances | M | Path-only node, has no configurable value. Configuration and operation data for MSTP instances | |
| instance | M | Path-only node, has no configurable value. List of MSTP instances | |
| id | O | 0..255 | MSTP instance ID |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| vlans | O | cmn:vlan-id | VLAN ID |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Interface
Section titled “Interface”Tree Diagram
module: asternos-stp +--rw stp +--rw mstp +--rw instancesGlobal configuration
Section titled “Global configuration”Tree Diagram
module: asternos-stp +--rw stp +--rw rstp +--rw config | +--rw forward-delay? uint16 | +--rw hello-time? uint16 | +--rw max-age? uint32 | +--rw priority? uint8 +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| rstp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for RSTP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Configuration data for RSTP
Section titled “Configuration data for RSTP”Tree Diagram
module: asternos-stp +--rw stp +--rw rstp +--rw config +--rw forward-delay? uint16 +--rw hello-time? uint16 +--rw max-age? uint32 +--rw priority? uint8Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| config | M | Path-only node, has no configurable value. Configuration data for RSTP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
Interfaces
Section titled “Interfaces”Tree Diagram
module: asternos-stp +--rw stp +--rw rstp +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Global configuration
Section titled “Global configuration”Tree Diagram
module: asternos-stp +--rw stp +--rw stp +--rw config | +--rw forward-delay? uint16 | +--rw hello-time? uint16 | +--rw max-age? uint32 | +--rw priority? uint8 +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| stp | M | Path-only node, has no configurable value. Global configuration | |
| config | M | Path-only node, has no configurable value. Configuration data for STP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Configuration data for STP
Section titled “Configuration data for STP”Tree Diagram
module: asternos-stp +--rw stp +--rw stp +--rw config +--rw forward-delay? uint16 +--rw hello-time? uint16 +--rw max-age? uint32 +--rw priority? uint8Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| config | M | Path-only node, has no configurable value. Configuration data for STP | |
| forward-delay | O | 4..30 | Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age Default value: 15 |
| hello-time | O | 1..10 | MSTP hello time, in seconds Default value: 2 |
| max-age | O | 6..40 | 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, must meet 2*(max-age - 1 second) >= forward-delay Default value: 20 |
| priority | O | 0..15 | MSTP Region priority, once mstp is enabled the value is set to 8 by default. Default value: 8 |
Interfaces
Section titled “Interfaces”Tree Diagram
module: asternos-stp +--rw stp +--rw stp +--rw interfaces +--rw interface* [name] +--rw name union +--rw priority? uint8 +--ro state +--ro role? stp-types:stp-port-role-enumeration +--ro port-state? stp-types:stp-port-state-enumerationTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. List of MSTP instance ports | |
| name | O | Ethernet name | Port name |
| priority | O | 0..15 | Set port priority for the MSTI Default value: 8 |
| state | RO | Path-only node, has no configurable value. Operational state data for STP on each interface | |
| role | RO | stp-types:stp-port-role-enumeration | The current role of the bridge port |
| port-state | RO | stp-types:stp-port-state-enumeration | The current state of the bridge port |
Show Stp
Section titled “Show Stp”Tree Diagram
module: asternos-stp
rpcs: +---x show-stp +---w input | +---w status? empty | +---w stp_info | | +---w stpid uint16 | | +---w interface_name? union | +---w bind? empty +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-stp | O | ||
| status | O | empty | Specify the spanning tree protocols |
| stp_info | M | Path-only node, has no configurable value. | |
| stpid | M | 0..63 | Specify the spanning tree protocols |
| interface_name | O | Ethernet name | interface name |
| bind | O | empty | show spanning_tree mstp bind info |
| data | O | show stp status of all instances |