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

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"port\": \"%uint32%\"}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/connection-addr/port

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"method\": \"%enumeration%\"}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/connection-addr/method

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"reconnect-interval\": \"%uint32%\"}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/reconnect-interval

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"activate\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:nsx-controller=%name%/activate

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"gw-type\": \"%overlay-gw-type%\"}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/gw-type

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"ve\": {\"ve-id\": \"%intf:ve-type%\", \"vrrp-extended-group\": \"%vrrp:vrid-type%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/ip/interface/ve

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"fabric-virtual-gateway\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/ip/interface/ve/fabric-virtual-gateway

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

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

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"optimized-replication\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/optimized-replication

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

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

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

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"overlay-acl-in\": {\"in-name\": \"%overlay-acl-name%\", \"in-dir\": {}}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/access-lists/overlay-acl-in

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"description\": \"%string%\"}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/description

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

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

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

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

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

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

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"interval\": {\"min-tx\": \"%bfd-tx-interval-type%\", \"min-rx\": \"%bfd-rx-interval-type%\", \"multiplier\": \"%bfd-multiplier-type%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/bfd/params/interval

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"shutdown\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/site=%name%/shutdown

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"activate\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:overlay-gateway=%name%/activate

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

curl -v -X PUT -H "Content-Type: application/yang-data+json" -k -d "{\"activate\": {}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-tunnels:ovsdb-server=%name%/activate

