Spanning Tree Admin-Edge Protect
Configures, modifies, and retrieves a port as an edge port.
Supported HTTP Operations
URL: https://<host>/restconf/data/stp/interfaces
Request body:
{
"interfaces": {
"interface": [
{
"name": "ethernet 1/1/10",
"config": {
"name": "ethernet 1/1/10",
"edge-port": "openconfig-spanning-tree-types:EDGE_ENABLE"
}
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/stp/interfaces
Request body:
{
"interfaces": {
"interface": [
{
"name": "ethernet 1/1/12",
"config": {
"name": "ethernet 1/1/12",
"edge-port": "openconfig-spanning-tree-types:EDGE_ENABLE"
}
}
]
}
}
Response body: None
URL: https://<host>/restconf/data/stp/interfaces
Request body:
{
"interface": [
{
"name": "ethernet 1/1/15",
"config": {
"name": "ethernet 1/1/15",
"edge-port": "openconfig-spanning-tree-types:EDGE_ENABLE"
}
}
]
}
Response body: None
DELETE
methodTo disable the BPDU guard, enter the value as "edge-port": "openconfig-spanning-tree-types:EDGE_DISABLE"The following is an example to delete the edge port.
{
"interfaces": {
"interface": [
{
"name": "ethernet 1/1/11",
"config": {
"name": "ethernet 1/1/11",
"edge-port": "openconfig-spanning-tree-types:EDGE_DISABLE"
}
}
]
}
}