
********************************************************************************
* 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 PUT -H "Content-Type: application/yang-data+xml" -k -d "<password>%string%</password>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<auto-boot />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/auto-boot

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<secure />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/ldap/ldap-server/ldap-server-options/secure

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<basedn>%string%</basedn>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/ldap/ldap-server/ldap-server-options/basedn

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<rootdn>%string%</rootdn>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/ldap/ldap-server/ldap-server-options/rootdn

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<rootdnpw>%string%</rootdnpw>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/ldap/ldap-server/ldap-server-options/rootdnpw

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<import><protocol>%enumeration%</protocol><user>%string%</user><ldap-password>%string%</ldap-password><ldap-host>%inet:host%</ldap-host><directory>%string%</directory><filename>%string%</filename></import>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/ldap/ca-cert/import

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<primary-server>%dns-server-ipv6%</primary-server>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/dns/dns-params/primary-server

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<secondary-server>%dns-server-ipv6%</secondary-server>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/dns/dns-params/secondary-server

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<domain>%string%</domain>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/dns/dns-params/domain

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<hostname>%string%</hostname>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/system-attributes/hostname

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<timezone>%common-def:timezone%</timezone>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/system-attributes/timezone

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<pwless><peer-ip>%inet:ipv4-address%</peer-ip><peer-password>%string%</peer-password></pwless>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/trusted-peer/pwless

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<pwless><peer-ipv6>%inet:ipv6-address%</peer-ipv6><peer-password>%string%</peer-password></pwless>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/trusted-peer/pwless

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<peer-sudoer>%string%</peer-sudoer>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/trusted-peer/peer-sudoer

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<ipaddr>%common-def:ipv4-prefix-mask%</ipaddr>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ip/ipaddr

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<gw>%inet:ipv4-address%</gw>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ip/gw

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<dhcp />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ip/dhcp

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<ipv6addr>%common-def:ipv6-address-prefix%</ipv6addr>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ipv6/ipv6addr

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<gwv6>%inet:ipv6-address%</gwv6>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ipv6/gwv6

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<dhcpv6 />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/management/ipv6/dhcpv6

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<insight-ipaddr>%common-def:ipv4-prefix-mask%</insight-ipaddr>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/insight/ip/insight-ipaddr

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<insight-gw>%inet:ipv4-address%</insight-gw>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/insight/ip/insight-gw

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<insight-dhcp />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/interface/insight/ip/insight-dhcp

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<deploy />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/deploy

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<undeploy-force />"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/undeploy-force

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<min-length>%uint32%</min-length>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password-policy/min-length

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<upper>%uint32%</upper>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password-policy/character-restriction/upper

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<lower>%uint32%</lower>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password-policy/character-restriction/lower

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<numeric>%uint32%</numeric>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password-policy/character-restriction/numeric

curl -v -X PUT -H "Content-Type: application/yang-data+xml" -k -d "<special-char>%uint32%</special-char>"  -u admin:password https://%ipaddress%:443/restconf/data/extreme-tpvm-config:tpvm-cfg/tpvm=%tpvm-instance-id%/password-policy/character-restriction/special-char

