
********************************************************************************
* 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 POST -H "Content-Type: application/yang-data+xml" -k -d "<mpls />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<policy />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<policy-admin-group><admin-group-name>%string%</admin-group-name><admin-group-number>%uint32%</admin-group-number></policy-admin-group>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/policy

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<global-auto-bandwidth />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/policy

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<rsvp />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<bundle-message />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/rsvp/g-refresh-reduction

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<g-reliable-messaging />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/rsvp

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<global-rsvp-hello />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/rsvp

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<ldp />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<ldp-session><ldp-session-ip>%inet:ipv4-address%</ldp-session-ip></ldp-session>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/ldp/ldp-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<ldp-targeted-peer><ldp-targeted-peer-ip>%inet:ipv4-address%</ldp-targeted-peer-ip></ldp-targeted-peer>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/ldp/ldp-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<ldp-gr />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/ldp/ldp-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<ldp-eol />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/ldp/ldp-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<dynamic-bypass />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<mpls-interface><interface-type>%enumeration%</interface-type><interface-name>%interface-type%</interface-name></mpls-interface>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<interface-rsvp-hello />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/mpls-interface=%interface-type%,%interface-name%/rsvp

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<bundle-message />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/mpls-interface=%interface-type%,%interface-name%/rsvp/interface-refresh-reduction

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<interface-reliable-messaging />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/mpls-interface=%interface-type%,%interface-name%/rsvp

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<interface-dynamic-bypass />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/mpls-interface=%interface-type%,%interface-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<autobw-template><autobw-template-name>%string%</autobw-template-name></autobw-template>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<autobw-threshold-table />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<autobw-threshold-table-bandwidth><bandwidth-value>%uint32%</bandwidth-value><autobw-threshold-table-threshold>%uint32%</autobw-threshold-table-threshold></autobw-threshold-table-bandwidth>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/autobw-threshold-table

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<cspf-group><cspf-group-name>%string%</cspf-group-name></cspf-group>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<cspf-group-ip><cspf-group-ip-address>%inet:ipv4-address%</cspf-group-ip-address></cspf-group-ip>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/cspf-group=%cspf-group-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<cspf-group-link><cspf-group-link-from>%inet:ipv4-address%</cspf-group-link-from><cspf-group-link-to>%inet:ipv4-address%</cspf-group-link-to></cspf-group-link>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/cspf-group=%cspf-group-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<cspf-group-subnet><cspf-group-subnet-ip>%inet:ipv4-prefix%</cspf-group-subnet-ip></cspf-group-subnet>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/cspf-group=%cspf-group-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<cspf-group-node><cspf-group-node-ip>%inet:ipv4-address%</cspf-group-node-ip></cspf-group-node>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/cspf-group=%cspf-group-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<path><path-name>%string%</path-name></path>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<path-hop><path-hop-ip>%inet:ipv4-address%</path-hop-ip><path-hop-type>%strict-loose-hop%</path-hop-type></path-hop>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/path=%path-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<path-insert><path-insert-ip>%inet:ipv4-address%</path-insert-ip><path-insert-type>%strict-loose-hop%</path-insert-type><path-insert-before-hop-ip>%inet:ipv4-address%</path-insert-before-hop-ip></path-insert>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/path=%path-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<bypass-lsp><bypass-lsp-name>%string%</bypass-lsp-name></bypass-lsp>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -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 https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/bypass-lsp=%bypass-lsp-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<lsp><lsp-name>%string%</lsp-name></lsp>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<lsp-auto-bandwidth />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/lsp=%lsp-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<lsp-frr />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/lsp=%lsp-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<secondary-path><secpath-name>%string%</secpath-name></secondary-path>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/lsp=%lsp-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<lsp-secpath-auto-bandwidth />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/lsp=%lsp-name%/secondary-path=%secpath-name%

curl -v -X POST -H "Content-Type: application/yang-data+xml" -k -d "<lsp-ospf />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-mpls:mpls-config/router/mpls/mpls-cmds-holder/lsp=%lsp-name%/lsp-shortcuts

