
********************************************************************************
* 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+xml" -k -d "<ip-anycast-gateway-mac>%mac-access-list:mac-address-type%</ip-anycast-gateway-mac>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ip/brocade-vrrp:static-ag-ip-config/anycast-gateway-mac/ip-anycast-gateway-mac

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<ip-anycast-default-mac />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ip/brocade-vrrp:static-ag-ip-config/anycast-gateway-mac/ip-anycast-default-mac

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<ipv6-anycast-gateway-mac>%mac-access-list:mac-address-type%</ipv6-anycast-gateway-mac>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ipv6/brocade-vrrp:static-ag-ipv6-config/anycast-gateway-mac/ipv6-anycast-gateway-mac

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<ipv6-anycast-default-mac />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ipv6/brocade-vrrp:static-ag-ipv6-config/anycast-gateway-mac/ipv6-anycast-default-mac

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<vrrp />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:protocol/brocade-vrrp:vrrp-holder/vrrp

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<vrrp-extended />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:protocol/brocade-vrrp:vrrp-holder/vrrp-extended

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<use-v2-checksum />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/use-v2-checksum

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<track-priority>%uint8%</track-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/track/interface=%interface-type%,%interface-name%/track-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval>%uint32%</advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<enable />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/enable

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hold-time>%uint32%</hold-time>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/hold-time

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<preempt-mode />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/preempt-mode

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<receive />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/arp/unicast-request/receive

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<priority>%uint8%</priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<description>%string%</description>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/ethernet=%name%/brocade-vrrp:vrrp=%vrid%,%version%/description

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<use-v2-checksum />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/use-v2-checksum

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<track-priority>%uint8%</track-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/track/interface=%interface-type%,%interface-name%/track-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval>%uint32%</advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<enable />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/enable

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hold-time>%uint32%</hold-time>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/hold-time

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<preempt-mode />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/preempt-mode

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<receive />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/arp/unicast-request/receive

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<priority>%uint8%</priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<description>%string%</description>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrp=%vrid%,%version%/description

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<virtual-mac>%enumeration%</virtual-mac>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/virtual-mac

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<network-priority>%uint8%</network-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/track/network=%network-address%/network-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<track-priority>%uint8%</track-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/track/interface=%interface-type%,%interface-name%/track-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval>%uint32%</advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<enable />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/enable

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hold-time>%uint32%</hold-time>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/hold-time

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<preempt-mode />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/preempt-mode

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<receive />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/arp/unicast-request/receive

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<priority>%uint8%</priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<description>%string%</description>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/description

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertise-backup />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/advertise-backup

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<backup-advertisement-interval>%uint32%</backup-advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/backup-advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<basic />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/short-path-forwarding/basic

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<revert-priority>%uint8%</revert-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/short-path-forwarding/revert-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval-scale>%uint32%</advertisement-interval-scale>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-vrrp:vrrpe=%vrid%/advertisement-interval-scale

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<track-priority>%uint8%</track-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/track/interface=%interface-type%,%interface-name%/track-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval>%uint32%</advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<enable />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/enable

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hold-time>%uint32%</hold-time>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/hold-time

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<preempt-mode />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/preempt-mode

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<receive />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/arp/unicast-request/receive

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<priority>%uint8%</priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<description>%string%</description>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp=%vrid%,%version%/description

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<track-priority>%uint8%</track-priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/track/interface=%interface-type%,%interface-name%/track-priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<advertisement-interval>%uint32%</advertisement-interval>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/advertisement-interval

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<enable />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/enable

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hold-time>%uint32%</hold-time>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/hold-time

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<preempt-mode />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/preempt-mode

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<receive />"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/arp/unicast-request/receive

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<priority>%uint8%</priority>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/priority

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<description>%string%</description>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-interface:interface/port-channel=%name%/brocade-vrrp:vrrp-e=%vrid%/description

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<auth-data>%string%</auth-data>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-ip-config:ip/brocade-vrrp:ip-vrrp-extended/auth-type/md5-auth/auth-data

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<auth-data>%string%</auth-data>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-interface:interface/ve=%name%/brocade-ipv6-config:ipv6/brocade-vrrp:ipv6-vrrp-extended/auth-type/md5-auth/auth-data

