
********************************************************************************
* 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 "<route-map><name>%route-map-name-type-t%</name><action-rm>%action-t%</action-rm><instance>%instance-id-t%</instance></route-map>"  -u admin:password http://%ipaddress%:80/rest/config/running


curl -v -X POST -d "[DO NOT USE]<icmp-type><compare-op>%comparison-type-t%</compare-op><value>%icmp-type-t%</value></icmp-type>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d "[DO NOT USE]<icmp-code><compare-op>%comparison-type-t%</compare-op><value>%icmp-code-t%</value></icmp-code>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d "[DO NOT USE]<flow-label><compare-op>%comparison-type-t%</compare-op><value>%flow-label-t%</value></flow-label>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ipv6


curl -v -X POST -d "[DO NOT USE]<icmp-type><compare-op>%comparison-type-t%</compare-op><value>%icmp-type-t%</value></icmp-type>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ip


curl -v -X POST -d "[DO NOT USE]<icmp-code><compare-op>%comparison-type-t%</compare-op><value>%icmp-code-t%</value></icmp-code>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/ip


curl -v -X POST -d "[DO NOT USE]<protocol-match-list><compare-op>%comparison-type-t%</compare-op><value>%ip-access-list:proto-type%</value></protocol-match-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match/protocol


curl -v -X POST -d "[DO NOT USE]<port><compare-op>%comparison-type-t%</compare-op><value>%ip-access-list:sport-number-eq-neq-tcp-udp%</value></port>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<source-port><compare-op>%comparison-type-t%</compare-op><value>%ip-access-list:sport-number-eq-neq-tcp-udp%</value></source-port>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<destination-port><compare-op>%comparison-type-t%</compare-op><value>%ip-access-list:dport-number-eq-neq-tcp-udp%</value></destination-port>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<packet-length><compare-op>%comparison-type-t%</compare-op><value>%packet-length-t%</value></packet-length>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<dscp><compare-op>%comparison-type-t%</compare-op><value>%dscp-precedence%</value></dscp>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<tcp-flags><flags-op>%bits-match-op-type-t%</flags-op><flags-string>%string%</flags-string></tcp-flags>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<fragment-type><fragment-type-op>%bits-match-op-type-t%</fragment-type-op><fragment-type-string>%string%</fragment-type-string></fragment-type>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/match


curl -v -X POST -d "[DO NOT USE]<mirror><destination>%inet:ipv4-address%</destination></mirror>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip


curl -v -X POST -d "<next-hop-list><next-hop-addr>%inet:ipv4-address%</next-hop-addr></next-hop-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip/next-hop


curl -v -X POST -d "<next-global-hop><next-hop>%inet:ipv4-address%</next-hop></next-global-hop>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip/global


curl -v -X POST -d "<next-vrf-list><vrf>%string%</vrf><next-hop>%inet:ipv4-address%</next-hop></next-vrf-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ip


curl -v -X POST -d "[DO NOT USE]<mirror><destination>%inet:ipv6-address%</destination></mirror>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6


curl -v -X POST -d "<next-global-hop><next-hop>%inet:ipv6-address%</next-hop></next-global-hop>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6/global


curl -v -X POST -d "<next-hop><next-hop>%inet:ipv6-address%</next-hop></next-hop>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6/next-hop


curl -v -X POST -d "<next-vrf-list><vrf>%string%</vrf><next-hop>%inet:ipv6-address%</next-hop></next-vrf-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set/ipv6


curl -v -X POST -d "<interface><rmap-set-interface-type>%rmap-set-intf-type%</rmap-set-interface-type><rmap-set-interface-name>%rmap-set-intf-name%</rmap-set-interface-name></interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/route-map/%name%/%action-rm%/%instance%/set


curl -v -X POST -d "[DO NOT USE]<prefix-list><name>%ipv6-prefix-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><description>%common-def:name-string63%</description><action-ipp>%action-t%</action-ipp><ipv6-prefix-ipp>%inet:ipv6-prefix%</ipv6-prefix-ipp></prefix-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6


curl -v -X POST -d "<statistics><vrf>%common-def:vrf-name%</vrf></statistics>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/flowspec/rules


curl -v -X POST -d "[DO NOT USE]<prefix-list><name>%ip-prefix-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><description>%common-def:name-string63%</description><action-ipp>%action-t%</action-ipp><prefix-ipp>%inet:ipv4-prefix%</prefix-ipp></prefix-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip


curl -v -X POST -d "<statistics><vrf>%common-def:vrf-name%</vrf></statistics>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/flowspec/rules


curl -v -X POST -d "<access-list><name>%ip-as-path-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><ip-action>%action-t%</ip-action><ip-reg-expr>%ip-as-path-reg-expr-t%</ip-reg-expr></access-list>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/as-path


curl -v -X POST -d "<standard><name>%ip-community-list-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><ip-action>%action-t%</ip-action><std-community-expr>%ip-std-community-expr-t%</std-community-expr></standard>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/community-list


curl -v -X POST -d "<extended><name>%ip-community-list-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><ip-action>%action-t%</ip-action><ip-community-reg-expr>%ip-community-reg-expr-t%</ip-community-reg-expr></extended>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/community-list


curl -v -X POST -d "<standard><extcommunity-list-name>%ip-extcommunity-list-name-t%</extcommunity-list-name></standard>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list


curl -v -X POST -d "<seq><seq-id>%uint32%</seq-id><ext-community-action>%action-t%</ext-community-action><ext-community-expr>%extcommunity-list-expr-t%</ext-community-expr></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list/standard/%extcommunity-list-name%


curl -v -X POST -d "<extended><extended-extcommunity-list-name>%ip-extcommunity-list-name-t%</extended-extcommunity-list-name></extended>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list


curl -v -X POST -d "<seq><extended-seq-id>%uint32%</extended-seq-id><exp-ext-community-action>%action-t%</exp-ext-community-action><ext-community-regex>%extcommunity-list-reg-expr-t%</ext-community-regex></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/extcommunity-list/extended/%extended-extcommunity-list-name%


curl -v -X POST -d "<standard><name>%ip-large-community-list-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><action>%action-t%</action><expr>%large-community-expr-t%</expr></standard>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/large-community-list


curl -v -X POST -d "<extended><name>%ip-large-community-list-name-t%</name><seq-keyword>%enumeration%</seq-keyword><instance>%instance-id-t%</instance><action>%action-t%</action><regex-expr>%ip-community-reg-expr-t%</regex-expr></extended>"  -u admin:password http://%ipaddress%:80/rest/config/running/ip/large-community-list


curl -v -X POST -d "<filter-change-update-delay><filter-delay-value>%uint32%</filter-delay-value></filter-change-update-delay>"  -u admin:password http://%ipaddress%:80/rest/config/running

