
********************************************************************************
* 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 POST -d "<mpls />"  -u admin:password http://%ipaddress%:80/rest/config/running/router


curl -v -X POST -d "<policy />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<admin-group><admin-group-name>%string%</admin-group-name><admin-group-number>%uint32%</admin-group-number></admin-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/policy


curl -v -X POST -d "<auto-bandwidth />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/policy


curl -v -X POST -d "<rsvp />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<bundle-message />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp/refresh-reduction


curl -v -X POST -d "<reliable-messaging />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp


curl -v -X POST -d "<hello />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp


curl -v -X POST -d "<ldp />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<session><ldp-session-ip>%inet:ipv4-address%</ldp-session-ip></session>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d "<targeted-peer><ldp-targeted-peer-ip>%inet:ipv4-address%</ldp-targeted-peer-ip></targeted-peer>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d "<graceful-restart />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d "<eol />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d "<dynamic-bypass />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<mpls-interface><interface-type>%enumeration%</interface-type><interface-name>%interface-type%</interface-name></mpls-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<hello />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%/rsvp


curl -v -X POST -d "<bundle-message />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%/rsvp/refresh-reduction


curl -v -X POST -d "<reliable-messaging />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%/rsvp


curl -v -X POST -d "<dynamic-bypass />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%


curl -v -X POST -d "<autobw-template><autobw-template-name>%string%</autobw-template-name></autobw-template>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<autobw-threshold-table />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<bandwidth><bandwidth-value>%uint32%</bandwidth-value><threshold>%uint32%</threshold></bandwidth>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/autobw-threshold-table


curl -v -X POST -d "<cspf-group><cspf-group-name>%string%</cspf-group-name></cspf-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<from><cspf-group-ip-address>%inet:ipv4-address%</cspf-group-ip-address></from>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d "<link><from>%inet:ipv4-address%</from><to>%inet:ipv4-address%</to></link>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d "<subnet><cspf-group-subnet-ip>%inet:ipv4-prefix%</cspf-group-subnet-ip></subnet>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d "<node><cspf-group-node-ip>%inet:ipv4-address%</cspf-group-node-ip></node>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d "<path><path-name>%string%</path-name></path>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<hop><path-hop-ip>%inet:ipv4-address%</path-hop-ip><path-hop-type>%strict-loose-hop%</path-hop-type></hop>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/path/%path-name%


curl -v -X POST -d "<insert><path-insert-ip>%inet:ipv4-address%</path-insert-ip><path-insert-type>%strict-loose-hop%</path-insert-type><before>%inet:ipv4-address%</before></insert>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/path/%path-name%


curl -v -X POST -d "<bypass-lsp><bypass-lsp-name>%string%</bypass-lsp-name></bypass-lsp>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<exclude-interface><bypass-exclude-interface-type>%mpls-interface-type%</bypass-exclude-interface-type><bypass-exclude-interface-name>%interface-type%</bypass-exclude-interface-name></exclude-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/bypass-lsp/%bypass-lsp-name%


curl -v -X POST -d "<lsp><lsp-name>%string%</lsp-name></lsp>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d "<autobw />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d "<frr />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d "<secondary-path><secpath-name>%string%</secpath-name></secondary-path>"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d "<autobw />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%/secondary-path/%secpath-name%


curl -v -X POST -d "<ospf />"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%/shortcuts

