
********************************************************************************
* Copyright (C) 2019-2024 by Extreme Networks , Inc.                           *
* This file is part of rBreeze 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.                   *
*                                                                              *
* 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 PUT -d "<map><cos>%cos-id-type%</cos><to><cos>%cos-id-type%</cos></to></map>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/cos-mutation/%name%/map/%cos%/to/cos-traffic-class


curl -v -X PUT -d "<drop-precedence>%drop-precedence-id-type%</drop-precedence>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/cos-traffic-class/%name%/map/%cos%/to/drop-precedence


curl -v -X PUT -d "<map><dscp>%dscp-id-range-type%</dscp><to><dscp>%dscp-id-type%</dscp></to></map>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/dscp-mutation/%dscp-mutation-map-name%/map/%dscp%/to/dscp-traffic-class


curl -v -X PUT -d "<drop-precedence>%drop-precedence-id-type%</drop-precedence>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/dscp-traffic-class/%dscp-traffic-class-map-name%/map/%dscp%/to/drop-precedence


curl -v -X PUT -d "<red-profile><min-threshold>%int32%</min-threshold><max-threshold>%int32%</max-threshold><drop-probability>%int32%</drop-probability></red-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/red-profile/%profile-id%


curl -v -X PUT -d "[DO NOT USE]<ecn>%enumeration%</ecn>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/red-profile/%profile-id%/ecn


curl -v -X PUT -d "[DO NOT USE]<limit>%uint32%</limit>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/tx-queue/limit


curl -v -X PUT -d "[DO NOT USE]<strict-priority><priority-number>%int32%</priority-number><scheduler-type>%enumeration%</scheduler-type><dwrr-traffic-class0>%int32%</dwrr-traffic-class0><dwrr-traffic-class1>%int32%</dwrr-traffic-class1><dwrr-traffic-class2>%int32%</dwrr-traffic-class2><dwrr-traffic-class3>%int32%</dwrr-traffic-class3><dwrr-traffic-class4>%int32%</dwrr-traffic-class4><dwrr-traffic-class5>%int32%</dwrr-traffic-class5><dwrr-traffic-class6>%int32%</dwrr-traffic-class6><dwrr-traffic-class-last>%int32%</dwrr-traffic-class-last></strict-priority>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/tx-queue/scheduler/strict-priority


curl -v -X PUT -d "[DO NOT USE]<limit>%uint32%</limit>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/rx-queue/limit


curl -v -X PUT -d "[DO NOT USE]<rate-percent>%rate-limit-percentage-type%</rate-percent>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/storm-control/ingress/%protocol-type%/rate-percent


curl -v -X PUT -d "<bum-action>%enumeration%</bum-action>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/storm-control/ingress/%protocol-type%/bum-action


curl -v -X PUT -d "[DO NOT USE]<cos>%cos-id-type%</cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/cos


curl -v -X PUT -d "[DO NOT USE]<traffic-class>%traffic-class-id-type%</traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/traffic-class


curl -v -X PUT -d "[DO NOT USE]<cos>true</cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/trust/cos


curl -v -X PUT -d "[DO NOT USE]<dscp>true</dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/trust/dscp


curl -v -X PUT -d "<dscp>true</dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/remark/dscp


curl -v -X PUT -d "[DO NOT USE]<cos-mutation>%map-name-type%</cos-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/cos-mutation


curl -v -X PUT -d "[DO NOT USE]<cos-mutation>%builtin-map-name-type%</cos-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/cos-mutation


curl -v -X PUT -d "[DO NOT USE]<traffic-class-cos>%map-name-type%</traffic-class-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/traffic-class-cos


curl -v -X PUT -d "[DO NOT USE]<traffic-class-cos>%builtin-map-name-type%</traffic-class-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/traffic-class-cos


curl -v -X PUT -d "<cos-traffic-class>%map-name-type%</cos-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/cos-traffic-class


curl -v -X PUT -d "<cos-traffic-class>%builtin-map-name-type%</cos-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/cos-traffic-class


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/traffic-class-dscp


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%builtin-map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/traffic-class-dscp


curl -v -X PUT -d "[DO NOT USE]<dscp-mutation>%map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-mutation


curl -v -X PUT -d "[DO NOT USE]<dscp-mutation>%builtin-map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-mutation


curl -v -X PUT -d "<dscp-traffic-class>%map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "<dscp-traffic-class>%builtin-map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "[DO NOT USE]<dscp-cos>%map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-cos


curl -v -X PUT -d "[DO NOT USE]<dscp-cos>%builtin-map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/dscp-cos


curl -v -X PUT -d "<enable>true</enable>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/drop-monitor/enable


curl -v -X PUT -d "<port-speed-up>%uint32%</port-speed-up>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/port-speed-up


curl -v -X PUT -d "[DO NOT USE]<flowcontrol><tx>%enumeration%</tx><rx>%enumeration%</rx></flowcontrol>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/flowcontrol


curl -v -X PUT -d "[DO NOT USE]<cos-threshold><cos0-threshold>%uint32%</cos0-threshold><cos1-threshold>%uint32%</cos1-threshold><cos2-threshold>%uint32%</cos2-threshold><cos3-threshold>%uint32%</cos3-threshold><cos4-threshold>%uint32%</cos4-threshold><cos5-threshold>%uint32%</cos5-threshold><cos6-threshold>%uint32%</cos6-threshold><cos7-threshold>%uint32%</cos7-threshold></cos-threshold>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/rx-queue/cos-threshold


curl -v -X PUT -d "<guarantee-rate>%guarantee-rate-type%</guarantee-rate>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/rx-queue/multicast/guarantee-rate


curl -v -X PUT -d "<best-effort-rate>%best-effort-rate-type%</best-effort-rate>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/rx-queue/multicast/best-effort-rate


curl -v -X PUT -d "[DO NOT USE]<rate-percent>%rate-limit-percentage-type%</rate-percent>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/storm-control/ingress/%protocol-type%/rate-percent


curl -v -X PUT -d "<bum-action>%enumeration%</bum-action>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/storm-control/ingress/%protocol-type%/bum-action


curl -v -X PUT -d "[DO NOT USE]<cos>%cos-id-type%</cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/cos


curl -v -X PUT -d "[DO NOT USE]<traffic-class>%traffic-class-id-type%</traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/traffic-class


curl -v -X PUT -d "[DO NOT USE]<cos>true</cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/trust/cos


curl -v -X PUT -d "[DO NOT USE]<dscp>true</dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/trust/dscp


curl -v -X PUT -d "<dscp>true</dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/remark/dscp


curl -v -X PUT -d "[DO NOT USE]<cos-mutation>%map-name-type%</cos-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/cos-mutation


curl -v -X PUT -d "[DO NOT USE]<cos-mutation>%builtin-map-name-type%</cos-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/cos-mutation


curl -v -X PUT -d "[DO NOT USE]<traffic-class-cos>%map-name-type%</traffic-class-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/traffic-class-cos


curl -v -X PUT -d "[DO NOT USE]<traffic-class-cos>%builtin-map-name-type%</traffic-class-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/traffic-class-cos


curl -v -X PUT -d "<cos-traffic-class>%map-name-type%</cos-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/cos-traffic-class


curl -v -X PUT -d "<cos-traffic-class>%builtin-map-name-type%</cos-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/cos-traffic-class


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/traffic-class-dscp


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%builtin-map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/traffic-class-dscp


curl -v -X PUT -d "[DO NOT USE]<dscp-mutation>%map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-mutation


curl -v -X PUT -d "[DO NOT USE]<dscp-mutation>%builtin-map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-mutation


curl -v -X PUT -d "<dscp-traffic-class>%map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "<dscp-traffic-class>%builtin-map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "[DO NOT USE]<dscp-cos>%map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-cos


curl -v -X PUT -d "[DO NOT USE]<dscp-cos>%builtin-map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/dscp-cos


curl -v -X PUT -d "<enable>true</enable>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/drop-monitor/enable


curl -v -X PUT -d "<port-speed-up>%uint32%</port-speed-up>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/port-speed-up


curl -v -X PUT -d "[DO NOT USE]<flowcontrol><tx>%enumeration%</tx><rx>%enumeration%</rx></flowcontrol>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/flowcontrol


curl -v -X PUT -d "<dscp-cos>%map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-cos


curl -v -X PUT -d "<dscp-cos>%builtin-map-name-type%</dscp-cos>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-cos


curl -v -X PUT -d "<dscp-mutation>%map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-mutation


curl -v -X PUT -d "<dscp-mutation>%builtin-map-name-type%</dscp-mutation>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-mutation


curl -v -X PUT -d "<dscp-traffic-class>%map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "<dscp-traffic-class>%builtin-map-name-type%</dscp-traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/dscp-traffic-class


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/traffic-class-dscp


curl -v -X PUT -d "[DO NOT USE]<traffic-class-dscp>%builtin-map-name-type%</traffic-class-dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/qos/traffic-class-dscp

