
********************************************************************************
* 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 PATCH -d "<standard><remark>%ip-access-list:l3-acl-remark-name%</remark></standard>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%


curl -v -X PATCH -d "<seq><action>%enumeration%</action><src-host-any-sip>%sip-cidr%</src-host-any-sip></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><src-host-ip>%sip%</src-host-ip></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><src-mask>%sip-mask%</src-mask></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><count>true</count></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sync>true</sync></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><log>true</log></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><copy-sflow>true</copy-sflow></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/standard/%name%/seq/%seq-id%


curl -v -X PATCH -d "<extended><remark>%ip-access-list:l3-acl-remark-name%</remark></extended>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%


curl -v -X PATCH -d "[DO NOT USE]<seq><action>%enumeration%</action><protocol-type>%ip-access-list:proto-type%</protocol-type><src-host-any-sip>%sip-cidr%</src-host-any-sip><src-host-ip>%sip%</src-host-ip><src-mask>%sip-mask%</src-mask><sport>%enumeration%</sport><sport-number-eq-neq-tcp>%ip-access-list:sport-number-eq-neq-tcp-udp%</sport-number-eq-neq-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-lt-tcp>%ip-access-list:sport-number-lt-tcp-udp%</sport-number-lt-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-gt-tcp>%ip-access-list:sport-number-gt-tcp-udp%</sport-number-gt-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-eq-neq-udp>%ip-access-list:sport-number-eq-neq-tcp-udp%</sport-number-eq-neq-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-lt-udp>%ip-access-list:sport-number-lt-tcp-udp%</sport-number-lt-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-gt-udp>%ip-access-list:sport-number-gt-tcp-udp%</sport-number-gt-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-range-lower-tcp>%ip-access-list:sport-range-lower-tcp-udp%</sport-number-range-lower-tcp><sport-number-range-lower-udp>%ip-access-list:sport-range-lower-tcp-udp%</sport-number-range-lower-udp><sport-number-range-higher-tcp>%ip-access-list:sport-range-higher-tcp-udp%</sport-number-range-higher-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sport-number-range-higher-udp>%ip-access-list:sport-range-higher-tcp-udp%</sport-number-range-higher-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><dst-host-any-dip>%dip-cidr%</dst-host-any-dip></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dst-host-ip>%dip%</dst-host-ip></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dst-mask>%dip-mask%</dst-mask></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport>%enumeration%</dport><dport-number-eq-neq-tcp>%ip-access-list:dport-number-eq-neq-tcp-udp%</dport-number-eq-neq-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-lt-tcp>%ip-access-list:dport-number-lt-tcp-udp%</dport-number-lt-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-gt-tcp>%ip-access-list:dport-number-gt-tcp-udp%</dport-number-gt-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-eq-neq-udp>%ip-access-list:dport-number-eq-neq-tcp-udp%</dport-number-eq-neq-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-lt-udp>%ip-access-list:dport-number-lt-tcp-udp%</dport-number-lt-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-gt-udp>%ip-access-list:dport-number-gt-tcp-udp%</dport-number-gt-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-range-lower-tcp>%ip-access-list:dport-range-lower-tcp-udp%</dport-number-range-lower-tcp><dport-number-range-lower-udp>%ip-access-list:dport-range-lower-tcp-udp%</dport-number-range-lower-udp><dport-number-range-higher-tcp>%ip-access-list:dport-range-higher-tcp-udp%</dport-number-range-higher-tcp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dport-number-range-higher-udp>%ip-access-list:dport-range-higher-tcp-udp%</dport-number-range-higher-udp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><dscp>%ip-access-list:dscp-uint%</dscp></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><dscp-force>%ip-access-list:dscprmrk-uint%</dscp-force></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><drop-precedence-force>%ip-access-list:drop-prec-uint%</drop-precedence-force></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><tc-force>%ip-access-list:tcmrk-uint%</tc-force></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><urg>true</urg></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><ack>true</ack></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><push>true</push></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><fin>true</fin></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><rst>true</rst></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sync>true</sync></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><vlan>%interface:vlan-type%</vlan></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><connlimit>%precedence-uint%</connlimit></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><count>true</count></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<seq><sync>true</sync></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><log>true</log></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><mirror>true</mirror></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "<seq><copy-sflow>true</copy-sflow></seq>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/access-list/extended/%name%/seq/%seq-id%


curl -v -X PATCH -d "[DO NOT USE]<access-group><traffic-type>%enumeration%</traffic-type></access-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/ipv6/access-group/%ipv6-access-list%/%ip-direction%


curl -v -X PATCH -d "[DO NOT USE]<access-group><traffic-type>%enumeration%</traffic-type></access-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/ipv6/access-group/%ipv6-access-list%/%ip-direction%


curl -v -X PATCH -d "[DO NOT USE]<access-group><traffic-type>%enumeration%</traffic-type></access-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ve/%name%/ipv6/access-group/%ipv6-access-list%/%ip-direction%


curl -v -X PATCH -d "<access-group><mgmt-ipv6-access-list>%ipv6-l3-acl-policy-name%</mgmt-ipv6-access-list><mgmt-ip-direction>%enumeration%</mgmt-ip-direction></access-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Management/%name%/ipv6/access-group


curl -v -X PATCH -d "<access-group><sequence>%ip-access-list:racl-seq-id%</sequence></access-group>"  -u admin:password http://%ipaddress%:80/rest/config/running/ipv6/receive/access-group/%acl-name%

