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


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


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


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


curl -v -X PUT -d "<activate>true</activate>"  -u admin:password http://%ipaddress%:80/rest/config/running/nsx-controller/%name%/activate


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


curl -v -X PUT -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 PUT -d "<fabric-virtual-gateway />"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/ip/interface/Ve/fabric-virtual-gateway


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


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


curl -v -X PUT -d "<optimized-replication />"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/optimized-replication


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


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


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


curl -v -X PUT -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 PUT -d "<description>%string%</description>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/description


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


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


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


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


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


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


curl -v -X PUT -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 PUT -d "<shutdown>true</shutdown>"  -u admin:password http://%ipaddress%:80/rest/config/running/overlay-gateway/%name%/site/%name%/shutdown


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


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


curl -v -X PUT -d "<activate>true</activate>"  -u admin:password http://%ipaddress%:80/rest/config/running/ovsdb-server/%name%/activate

