
********************************************************************************
* 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 "<ip><address>%inet:ip-address%</address></ip>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%/ip


curl -v -X PATCH -d "<ip><port>%uint32%</port></ip>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%/ip


curl -v -X PATCH -d "<ip><method>%enumeration%</method></ip>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%/ip


curl -v -X PATCH -d "[DO NOT USE]<nsx-controller><reconnect-interval>%uint32%</reconnect-interval></nsx-controller>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%


curl -v -X PATCH -d "[DO NOT USE]<nsx-controller><activate>true</activate></nsx-controller>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%


curl -v -X PATCH -d "<overlay-gateway><type>%overlay-gw-type%</type></overlay-gateway>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%


curl -v -X PATCH -d "[DO NOT USE]<Ve><ve-id>%intf:ve-type%</ve-id><vrrp-extended-group>%vrrp:vrid-type%</vrrp-extended-group></Ve>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/ip/interface/Ve


curl -v -X PATCH -d "<Loopback><loopback-id>%lo:intf-loopback-port-type%</loopback-id></Loopback>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/ip/interface/Loopback


curl -v -X PATCH -d "<vni><auto>true</auto></vni>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/map/vni


curl -v -X PATCH -d "<vlan-vni-mapping><vni>%vni-type%</vni></vlan-vni-mapping>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/map/vlan-vni-mapping/%vlan%


curl -v -X PATCH -d "<bd-vni-mapping><vni>%vni-type%</vni></bd-vni-mapping>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/map/bd-vni-mapping/%bridge-domain%


curl -v -X PATCH -d "<optimized-replication><underlay-mdt-default-group>%inet:ipv4-address%</underlay-mdt-default-group></optimized-replication>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/optimized-replication


curl -v -X PATCH -d "<underlay-mdt-group><add>%intf:ui32-vlan-20k-range%</add></underlay-mdt-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/optimized-replication/underlay-mdt-group/%group-ip-address%/%broadcast-domain-type%


curl -v -X PATCH -d "<underlay-mdt-group><remove>%intf:ui32-vlan-20k-range%</remove></underlay-mdt-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/optimized-replication/underlay-mdt-group/%group-ip-address%/%broadcast-domain-type%


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


curl -v -X PATCH -d "<overlay><access-group>%overlay-acl-name%</access-group><in>true</in></overlay>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/overlay


curl -v -X PATCH -d "<site><description>%string%</description></site>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%


curl -v -X PATCH -d "<vlan><add>%vlan-range-type%</add></vlan>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/extend/vlan


curl -v -X PATCH -d "<vlan><remove>%vlan-range-type%</remove></vlan>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/extend/vlan


curl -v -X PATCH -d "<bridge-domain><add>%bridge-domain-id-range-type%</add></bridge-domain>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/extend/bridge-domain


curl -v -X PATCH -d "<bridge-domain><remove>%bridge-domain-id-range-type%</remove></bridge-domain>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/extend/bridge-domain


curl -v -X PATCH -d "[DO NOT USE]<mac-learning><protocol>%mac-learning-proto-type%</protocol></mac-learning>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/mac-learning


curl -v -X PATCH -d "[DO NOT USE]<site><bfd>true</bfd></site>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%


curl -v -X PATCH -d "[DO NOT USE]<interval><min-tx>%bfd-tx-interval-type%</min-tx><min-rx>%bfd-rx-interval-type%</min-rx><multiplier>%bfd-multiplier-type%</multiplier></interval>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/bfd/interval


curl -v -X PATCH -d "<site><shutdown>true</shutdown></site>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%


curl -v -X PATCH -d "<overlay-gateway><activate>true</activate></overlay-gateway>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%


curl -v -X PATCH -d "[DO NOT USE]<ovsdb-server><port>%ovsdb-server-port-type%</port></ovsdb-server>"  -u admin:password http://%ipaddress%:80/rest/config/running/ovsdb-server/%name%


curl -v -X PATCH -d "[DO NOT USE]<ovsdb-server><activate>true</activate></ovsdb-server>"  -u admin:password http://%ipaddress%:80/rest/config/running/ovsdb-server/%name%

