
********************************************************************************
* Copyright (C) 2019-2024 by Extreme Networks , Inc.                           *
* This file is part of rcBreeze Dump                                            *
*                                                                              *
* Author: Pradeep Raj.                                                         *
*                                                                              *
*                                                                              *
* Directions to Use:                                                           *
* 1. Replace all the values enclosed in the "%" with                           *
*    the values to be configured. The string present with in the braces        * 
*    indicates its type.                                                       *
* 2. To pass "" in the request replace the " with %22.                         *
* 3. To pass multiple keys in the URI enclose seperate them with %2c or        *
*    comma(",").                                                               *
* 4. Avoid using the requests with [DO NOT USE] tag in the payload. These could*
*    be defective because of the tailf extensions they have.                   *
*                                                                              *
* 5. RestConf also supports Json formatting which can be obtained by simply    *
*    updating Content-Type: application/yang-data+xml to                       *
*    Content-Type: application/yang-data+json                                  * 
*                                                                              * 

* Disclaimer:                                                                  *
* 1. The queries mentioned here do not have a one-to-one correlation with CLI. *
* 2. The queries inferred here are based on an automated tool and are not      *
*    gauranteed to work. Its the functional teams responsibilty to ensure its  *
*    working.                                                                  *
* 3. In case if you find any discrepancy you can always contact the author to  *
*    get it fixed.                                                             *
* 4. Avoid using the requests with [DO NOT USE] tag in the payload. These could*
*    be defective because of the tailf extensions they have.                   *
********************************************************************************
curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"stp\": {\"description\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"stp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"enable\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp/port-channel

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"stp\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/stp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rstp\": {\"description\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rstp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"enable\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp/port-channel

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rstp\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rstp\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"pvst\": {\"description\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"pvst\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"enable\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/port-channel

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"pvst\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/pvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rpvst\": {\"description\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rpvst\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"enable\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/port-channel

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rpvst\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst/vlan=%id%/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"rpvst\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/rpvst

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"timer-config\": {\"max-age\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/timer-config

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"description\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"enable\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/error-disable-timeout

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/port-channel

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"cisco-interoperability\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"instance\": {\"vlan\": \"%xstp-ui32-vlan-range%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"region\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"revision\": \"%uint16%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"max-hops\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mstp\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:protocol/brocade-xstp:spanning-tree/mstp

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"autoedge\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"portfast\": {\"portfastbasic\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/portfast

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"portfast\": {\"bpdu-guard\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/portfast

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"edgeport\": {\"edgeportbasic\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/edgeport

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"edgeport\": {\"bpdu-guard\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/edgeport

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"guard\": {\"root\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/guard

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"bpdu-mac\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"link-type\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"restricted-role\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"restricted-tcn\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"spanning-tree\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"vlan\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"guard\": {\"root\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/vlan=%id%/guard

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"restricted-role\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"restricted-tcn\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"autoedge\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"portfast\": {\"portfastbasic\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/portfast

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"portfast\": {\"bpdu-guard\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/portfast

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"edgeport\": {\"edgeportbasic\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/edgeport

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"edgeport\": {\"bpdu-guard\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/edgeport

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"guard\": {\"root\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/guard

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"bpdu-mac\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"link-type\": \"%enumeration%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"restricted-role\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"spanning-tree\": {\"restricted-tcn\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"spanning-tree\": {\"shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"vlan\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/vlan=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"guard\": {\"root\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/vlan=%id%/guard

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"cost\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"restricted-role\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"instance\": {\"restricted-tcn\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-xstp:spanning-tree/instance=%id%

curl -v -X PATCH -H "Content-Type: application/yang-data+json" -k -d "{\"spanning-tree\": {\"stp-shutdown\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface-vlan/vlan=%name%/brocade-xstp:spanning-tree

