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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

