
********************************************************************************
* 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 PATCH -d "<to><cos>%cos-id-type%</cos></to>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/cos-mutation/%name%/map/%cos%/to/cos-traffic-class


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


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


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


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


curl -v -X PATCH -d "<to><dscp>%dscp-id-type%</dscp></to>"  -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 PATCH -d "<to><traffic-class>%traffic-class-id-type%</traffic-class></to>"  -u admin:password http://%ipaddress%:80/rest/config/running/qos/map/dscp-traffic-class/%dscp-traffic-class-map-name%/map/%dscp%/to


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


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


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


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


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


curl -v -X PATCH -d "[DO NOT USE]<ingress><rate-format>%enumeration%</rate-format><rate-bps>%rate-limit-bps-type%</rate-bps></ingress>"  -u admin:password http://%ipaddress%:80/rest/config/running/storm-control/ingress/%protocol-type%


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


curl -v -X PATCH -d "<traffic-class><red-profile-id>%red-profile-id-type%</red-profile-id></traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/random-detect/traffic-class/%red-tc-value%/%drop-precedence%


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


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


curl -v -X PATCH -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 PATCH -d "[DO NOT USE]<pfc><tx>%enumeration%</tx><rx>%enumeration%</rx></pfc>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/flowcontrol/pfc/%cos%


curl -v -X PATCH -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 PATCH -d "<queue-size><min-queue-size>%min-queue-size-type%</min-queue-size><max-queue-size>%max-queue-size-type%</max-queue-size></queue-size>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/rx-queue/unicast/queue-size/%traffic-class%


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


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


curl -v -X PATCH -d "<queue-size><min-queue-size>%min-queue-size-type%</min-queue-size><max-queue-size>%max-queue-size-type%</max-queue-size></queue-size>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/qos/rx-queue/multicast/queue-size/%traffic-class%


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


curl -v -X PATCH -d "<traffic-class><red-profile-id>%red-profile-id-type%</red-profile-id></traffic-class>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/random-detect/traffic-class/%red-tc-value%/%drop-precedence%


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


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


curl -v -X PATCH -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 PATCH -d "[DO NOT USE]<pfc><tx>%enumeration%</tx><rx>%enumeration%</rx></pfc>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/qos/flowcontrol/pfc/%cos%


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


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


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


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


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


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


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


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

