
********************************************************************************
* 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 -H "application/vnd.configuration.resource+json" "{\"mpls\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"policy\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"admin-group\": {\"admin-group-name\": \"%string%\", \"admin-group-number\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/policy


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"auto-bandwidth\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/policy


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"rsvp\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"bundle-message\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp/refresh-reduction


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"reliable-messaging\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"hello\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/rsvp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"ldp\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"session\": {\"ldp-session-ip\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"targeted-peer\": {\"ldp-targeted-peer-ip\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"graceful-restart\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"eol\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/ldp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"dynamic-bypass\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"mpls-interface\": {\"interface-type\": \"%enumeration%\", \"interface-name\": \"%interface-type%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"hello\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%/rsvp


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 -H "application/vnd.configuration.resource+json" "{\"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 -H "application/vnd.configuration.resource+json" "{\"dynamic-bypass\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/mpls-interface/%interface-type%/%interface-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"autobw-template\": {\"autobw-template-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"autobw-threshold-table\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"bandwidth\": {\"bandwidth-value\": \"%uint32%\", \"threshold\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/autobw-threshold-table


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"cspf-group\": {\"cspf-group-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"from\": {\"cspf-group-ip-address\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"link\": {\"from\": \"%inet:ipv4-address%\", \"to\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"subnet\": {\"cspf-group-subnet-ip\": \"%inet:ipv4-prefix%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"node\": {\"cspf-group-node-ip\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/cspf-group/%cspf-group-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"path\": {\"path-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"hop\": {\"path-hop-ip\": \"%inet:ipv4-address%\", \"path-hop-type\": \"%strict-loose-hop%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/path/%path-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"insert\": {\"path-insert-ip\": \"%inet:ipv4-address%\", \"path-insert-type\": \"%strict-loose-hop%\", \"before\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/path/%path-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"bypass-lsp\": {\"bypass-lsp-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"exclude-interface\": {\"bypass-exclude-interface-type\": \"%mpls-interface-type%\", \"bypass-exclude-interface-name\": \"%interface-type%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/bypass-lsp/%bypass-lsp-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"lsp\": {\"lsp-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"autobw\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"frr\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"secondary-path\": {\"secpath-name\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"autobw\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%/secondary-path/%secpath-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"ospf\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/router/mpls/lsp/%lsp-name%/shortcuts

