Spanning Tree Admin-Edge Protect

Configures, modifies, and retrieves a port as an edge port.

Supported HTTP Operations

PATCH method

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

PUT method

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

POST method

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 method
To 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"
                                            }
                                        }
                                    ]
                                }
                            }