
********************************************************************************
* 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 PATCH -H "Content-Type: application/yang-data+xml" -k -d "<connection-addr><address>%inet:ip-address%</address></connection-addr>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/connection-addr

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<connection-addr><port>%uint32%</port></connection-addr>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/connection-addr

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<connection-addr><method>%enumeration%</method></connection-addr>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/connection-addr

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<nsx-controller><reconnect-interval>%uint32%</reconnect-interval></nsx-controller>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<nsx-controller><activate /></nsx-controller>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<overlay-gateway><gw-type>%overlay-gw-type%</gw-type></overlay-gateway>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -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 https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/ip/interface/ve

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<loopback><loopback-id>%lo:intf-loopback-port-type%</loopback-id></loopback>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/ip/interface/loopback

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<vni><auto /></vni>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/map/vlan-and-bd/vni

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<vlan-vni-mapping><vni>%vni-type%</vni></vlan-vni-mapping>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/map/vlan-vni-mapping=%vid%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<bd-vni-mapping><vni>%vni-type%</vni></bd-vni-mapping>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/map/bd-vni-mapping=%bdid%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<optimized-replication><underlay-mdt-default-group>%inet:ipv4-address%</underlay-mdt-default-group></optimized-replication>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/optimized-replication

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<underlay-mdt-group><add>%intf:ui32-vlan-20k-range%</add></underlay-mdt-group>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/optimized-replication/underlay-mdt-group=%group-ip-address%,%broadcast-domain-type%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<underlay-mdt-group><remove>%intf:ui32-vlan-20k-range%</remove></underlay-mdt-group>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/optimized-replication/underlay-mdt-group=%group-ip-address%,%broadcast-domain-type%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<overlay-gateway><qos-dscp-mode>%qos-mode-type%</qos-dscp-mode></overlay-gateway>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<overlay-acl-in><in-name>%overlay-acl-name%</in-name><in-dir /></overlay-acl-in>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/access-lists/overlay-acl-in

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<site><description>%string%</description></site>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<vlan><add>%vlan-range-type%</add></vlan>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/extend/vlan

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<vlan><remove>%vlan-range-type%</remove></vlan>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/extend/vlan

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<bridge-domain><bd-add>%bridge-domain-id-range-type%</bd-add></bridge-domain>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/extend/bridge-domain

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<bridge-domain><bd-remove>%bridge-domain-id-range-type%</bd-remove></bridge-domain>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/extend/bridge-domain

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<mac-learning><protocol>%mac-learning-proto-type%</protocol></mac-learning>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/mac-learning

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<site><bfd-enable /></site>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -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 https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/bfd/params/interval

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<site><shutdown /></site>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<overlay-gateway><activate /></overlay-gateway>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<ovsdb-server><port>%ovsdb-server-port-type%</port></ovsdb-server>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:ovsdb-server=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<ovsdb-server><activate /></ovsdb-server>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:ovsdb-server=%name%

