RSTP
Configures, modifies, and retrieves Rapid Spanning Tree (802.1w) and RSTP priority for the VLAN configurations. The default priority value is 32768. The URI to configure data for rapid spanning tree for the VLAN is:
/stp/rapid-pvst
Supported HTTP Operations
URL: https://<host>/restconf/data/stp/rapid-pvst
Request body: {
"rapid-pvst": {
"vlan": [
{
"vlan-id": 20,
"config": {
"vlan-id": 20,
"bridge-priority": 3478
}
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/stp/rapid-pvst
Request body: {
"vlan": [
{
"vlan-id": 40,
"config": {
"vlan-id": 40,
"bridge-priority": 12345
}
}
]
}
Response body: None
URL: https://<host>/restconf/data/stp/rapid-pvst
Request body:
{
"rapid-pvst": {
"vlan": [
{
"vlan-id": 45,
"config": {
"vlan-id": 45,
"bridge-priority": 86
}
}
]
}
}
Response body: NoneGET
methodURL: https://<host>/restconf/data/stp/rapid-pvst
Request body: None
Response body: {
"openconfig-spanning-tree:rapid-pvst": {
"vlan": [
{
"vlan-id": 20,
"config": {
"vlan-id": 20,
"bridge-priority": 3478
},
"state": {}
},
{
"vlan-id": 40,
"config": {
"vlan-id": 40,
"bridge-priority": 12345
},
"state": {}
},
{
"vlan-id": 45,
"config": {
"vlan-id": 45,
"bridge-priority": 86
},
"state": {}
}
]
}
}
DELETE method
URL: https://<host>/restconf/data/stp/rapid-pvst/vlan/45
Request body: None Response body: None