
********************************************************************************
* 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 POST -H "Content-Type: application/yang-data+json" -k -d "{\"route-map\": {\"name\": \"%route-map-name-type-t%\", \"action-rm\": \"%action-t%\", \"instance\": \"%instance-id-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"icmp-type\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-type-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/ipv6

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"icmp-code\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-code-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/ipv6

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"flow-label\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%flow-label-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/ipv6

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"icmp-type\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-type-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/ip

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"icmp-code\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-code-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/ip

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"protocol-match-list\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:proto-type%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match/protocol

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:sport-number-eq-neq-tcp-udp%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"source-port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:sport-number-eq-neq-tcp-udp%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"destination-port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:dport-number-eq-neq-tcp-udp%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"packet-length\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%packet-length-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"dscp\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%dscp-precedence%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"tcp-flags\": {\"flags-op\": \"%bits-match-op-type-t%\", \"flags-string\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"fragment-type\": {\"fragment-type-op\": \"%bits-match-op-type-t%\", \"fragment-type-string\": \"%string%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/match

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mirror\": {\"destination\": \"%inet:ipv4-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ip

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-hop-list\": {\"next-hop-addr\": \"%inet:ipv4-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ip/next-hop

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-global-hop\": {\"next-hop\": \"%inet:ipv4-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ip/global

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-vrf-list\": {\"vrf\": \"%string%\", \"next-hop\": \"%inet:ipv4-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ip/next-vrf

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"mirror\": {\"destination\": \"%inet:ipv6-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ipv6

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-global-hop\": {\"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ipv6/global

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-hop\": {\"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ipv6/next-ip

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"next-vrf-list\": {\"vrf\": \"%string%\", \"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set/ipv6/next-vrf

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"interface\": {\"rmap-set-interface-type\": \"%rmap-set-intf-type%\", \"rmap-set-interface-name\": \"%rmap-set-intf-name%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/brocade-ip-policy:route-map=%name%,%action-rm%,%instance%/content/set

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"prefix-list\": {\"name\": \"%ipv6-prefix-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"ipv6-description-ipp\": \"%common-def:name-string63%\", \"action-ipp\": \"%action-t%\", \"ipv6-prefix-ipp\": \"%inet:ipv6-prefix%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ipv6

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"statistics\": {\"vrf\": \"%common-def:vrf-name%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ipv6/brocade-ip-policy:flowspec/rules/statistics-vrf

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "[DO NOT USE]{\"prefix-list\": {\"name\": \"%ip-prefix-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"ip-description-ipp\": \"%common-def:name-string63%\", \"action-ipp\": \"%action-t%\", \"prefix-ipp\": \"%inet:ipv4-prefix%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-prefix-holder

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"statistics\": {\"vrf\": \"%common-def:vrf-name%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:flowspec/rules/statistics-vrf

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"access-list\": {\"name\": \"%ip-as-path-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"ip-action\": \"%action-t%\", \"ip-reg-expr\": \"%ip-as-path-reg-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-as-path-holder/as-path

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"standard\": {\"name\": \"%ip-community-list-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"ip-action\": \"%action-t%\", \"std-community-expr\": \"%ip-std-community-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-community-list-holder/community-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"extended\": {\"name\": \"%ip-community-list-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"ip-action\": \"%action-t%\", \"ip-community-reg-expr\": \"%ip-community-reg-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-community-list-holder/community-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"standard\": {\"extcommunity-list-name\": \"%ip-extcommunity-list-name-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-ext-community-list-holder/extcommunity-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"seq\": {\"seq-id\": \"%uint32%\", \"ext-community-action\": \"%action-t%\", \"ext-community-expr\": \"%extcommunity-list-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-ext-community-list-holder/extcommunity-list/standard=%extcommunity-list-name%

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"extended\": {\"extended-extcommunity-list-name\": \"%ip-extcommunity-list-name-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-ext-community-list-holder/extcommunity-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"seq\": {\"extended-seq-id\": \"%uint32%\", \"exp-ext-community-action\": \"%action-t%\", \"ext-community-regex\": \"%extcommunity-list-reg-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:ip/brocade-ip-policy:hide-ext-community-list-holder/extcommunity-list/extended=%extended-extcommunity-list-name%

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"standard\": {\"name\": \"%ip-large-community-list-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"action\": \"%action-t%\", \"expr\": \"%large-community-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ip/brocade-ip-policy:hide-large-community-list-holder/large-community-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"extended\": {\"name\": \"%ip-large-community-list-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"action\": \"%action-t%\", \"regex-expr\": \"%ip-community-reg-expr-t%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-common-def:routing-system/ip/brocade-ip-policy:hide-large-community-list-holder/large-community-list

curl -v -X POST -H "Content-Type: application/yang-data+json" -k -d "{\"filter-change-update-delay\": {\"filter-delay-value\": \"%uint32%\"}}"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-ip-policy:hide-filter-change-update-delay-holder

