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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

