PVST

Configures, modifies, and retrieves spanning tree for the VLAN. The URI to configure data for spanning tree for the VLAN is:

/stp/icx-openconfig-spanning-tree-aug:pvst

Default Configuration

VLAN 1 with default priority 32768.

 {
    "icx-openconfig-spanning-tree-aug:pvst": {
        "vlan": [
            {
               "vlan-id": 1,
                "config": {
                    "vlan-id": 1,
                    "pvst-priority": 32768
                },
                "state": {}
            }
        ]
    }
}

Supported HTTP Operations

PATCH method

URL: https://<host>/restconf/data/stp/icx-openconfig-spanning-tree-aug:pvst
Request body: {
    "pvst": {
        "vlan": [
            {
                "vlan-id": 66,
                "config": {
                    "vlan-id": 66,
                    "pvst-priority": 2345
                }
            }
        ]
    }
}
Response body: None

POST method

URL: https://<host>/restconf/data/stp/icx-openconfig-spanning-tree-aug:pvst
Request body:
 {
        "vlan": [
            {
                "vlan-id": 35,
                "config": {
                    "vlan-id": 35,
                    "pvst-priority": 1824
                }
            }
        ]
}
Response body: None    

GET method

URL: https://<host>/restconf/data/stp/icx-openconfig-spanning-tree-aug:pvst
Request body: None
Response body: {
    "icx-openconfig-spanning-tree-aug:pvst": {
        "vlan": [
            {
                "vlan-id": 1,
                "config": {
                    "vlan-id": 1,
                    "pvst-priority": 32768
                },
                "state": {}
            },
            {
                "vlan-id": 66,
                "config": {
                    "vlan-id": 66,
                    "pvst-priority": 2345
                },
                "state": {}
            },
            {
                "vlan-id": 35,
                "config": {
                    "vlan-id": 35,
                    "pvst-priority": 1824
                },
                "state": {}
            }
        ]
    }
}   

PUT method

URL: https://<host>/restconf/data/stp/icx-openconfig-spanning-tree-aug:pvst
Request body: {
    "pvst": {
        "vlan": [
            {
                "vlan-id": 25,
                "config": {
                    "vlan-id": 25,
                    "pvst-priority": 200
                }
            }
        ]
    }
}
Response body: None

DELETE

URL: https://<host>/restconf/data/stp/icx-openconfig-spanning-tree-aug:pvst/vlan/66
Request body: None
Response body: Disables spanning tree on vlan 66.
GET :
{
    "icx-openconfig-spanning-tree-aug:pvst": {
        "vlan": [
            {
                "vlan-id": 1,
                "config": {
                    "vlan-id": 1,
                    "pvst-priority": 32768
                },
                "state": {}
            },
            {
                "vlan-id": 35,
                "config": {
                    "vlan-id": 35,
                    "pvst-priority": 1824
                },
                "state": {}
            }
        ]
    }
}