
********************************************************************************
* 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 POST -d -H "application/vnd.configuration.resource+json" "{\"route-map\": {\"name\": \"%route-map-name-type-t%\", \"action-rm\": \"%action-t%\", \"instance\": \"%instance-id-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"icmp-type\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-type-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"icmp-code\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-code-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"flow-label\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%flow-label-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"icmp-type\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-type-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ip


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"icmp-code\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%icmp-code-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ip


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"protocol-match-list\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:proto-type%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/protocol


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:sport-number-eq-neq-tcp-udp%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:sport-number-eq-neq-tcp-udp%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"destination-port\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%ip-access-list:dport-number-eq-neq-tcp-udp%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"packet-length\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%packet-length-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"dscp\": {\"compare-op\": \"%comparison-type-t%\", \"value\": \"%dscp-precedence%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"tcp-flags\": {\"flags-op\": \"%bits-match-op-type-t%\", \"flags-string\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"fragment-type\": {\"fragment-type-op\": \"%bits-match-op-type-t%\", \"fragment-type-string\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mirror\": {\"destination\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-hop-list\": {\"next-hop-addr\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip/next-hop


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-global-hop\": {\"next-hop\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip/global


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-vrf-list\": {\"vrf\": \"%string%\", \"next-hop\": \"%inet:ipv4-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mirror\": {\"destination\": \"%inet:ipv6-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-global-hop\": {\"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6/global


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-hop\": {\"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6/next-hop


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"next-vrf-list\": {\"vrf\": \"%string%\", \"next-hop\": \"%inet:ipv6-address%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"interface\": {\"rmap-set-interface-type\": \"%rmap-set-intf-type%\", \"rmap-set-interface-name\": \"%rmap-set-intf-name%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"prefix-list\": {\"name\": \"%ipv6-prefix-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"description\": \"%common-def:name-string63%\", \"action-ipp\": \"%action-t%\", \"ipv6-prefix-ipp\": \"%inet:ipv6-prefix%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"statistics\": {\"vrf\": \"%common-def:vrf-name%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/flowspec/rules


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"prefix-list\": {\"name\": \"%ip-prefix-name-t%\", \"seq-keyword\": \"%enumeration%\", \"instance\": \"%instance-id-t%\", \"description\": \"%common-def:name-string63%\", \"action-ipp\": \"%action-t%\", \"prefix-ipp\": \"%inet:ipv4-prefix%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"statistics\": {\"vrf\": \"%common-def:vrf-name%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/flowspec/rules


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 http://%ipaddress%:80/rest/config/running/ip/as-path


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 http://%ipaddress%:80/rest/config/running/ip/community-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 http://%ipaddress%:80/rest/config/running/ip/community-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"standard\": {\"extcommunity-list-name\": \"%ip-extcommunity-list-name-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"seq\": {\"seq-id\": \"%uint32%\", \"ext-community-action\": \"%action-t%\", \"ext-community-expr\": \"%extcommunity-list-expr-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list/standard/%extcommunity-list-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"extended\": {\"extended-extcommunity-list-name\": \"%ip-extcommunity-list-name-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"seq\": {\"extended-seq-id\": \"%uint32%\", \"exp-ext-community-action\": \"%action-t%\", \"ext-community-regex\": \"%extcommunity-list-reg-expr-t%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list/extended/%extended-extcommunity-list-name%


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 http://%ipaddress%:80/rest/config/running/ip/large-community-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"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 http://%ipaddress%:80/rest/config/running/ip/large-community-list


curl -v -X POST -d -H "application/vnd.configuration.resource+json" "{\"filter-change-update-delay\": {\"filter-delay-value\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running

