
********************************************************************************
* 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 "<login><first>%enumeration%</first></login>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/authentication/login

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<login><second>%enumeration%</second></login>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/authentication/login

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<login><third>%enumeration%</third></login>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/authentication/login

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<start-stop><server-type>%acc_srv_type%</server-type></start-stop>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/accounting/exec/defaultacc/start-stop

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<start-stop><server-type>%acc_srv_type%</server-type></start-stop>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/accounting/commands/defaultacc/start-stop

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><firstauthor>%enumeration%</firstauthor></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/authorization/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<command><secondauthor>%enumeration%</secondauthor></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:aaa-config/aaa/authorization/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><user-password>%user-passwd%</user-password></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><encryption-level>%enumeration%</encryption-level></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><role>%string%</role></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><desc>%string%</desc></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><enable>%username-enable%</enable></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><expire>%date%</expire></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><access-time>%string%</access-time></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<username><end-time>%string%</end-time></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><acct-inactivity-expiry-period>%uint32%</acct-inactivity-expiry-period></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<username><acct-inactivity-warning-period>%uint32%</acct-inactivity-warning-period></username>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:username=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<service><password-encryption /></service>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:service

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<name><desc>%string%</desc></name>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:role/name=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><auth-port>%rad-auth-port%</auth-port></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><protocol>%rad-auth-protocols%</protocol></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><key>%string%</key></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><encryption-level>%enumeration%</encryption-level></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><retries>%uint32%</retries></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><timeout>%uint32%</timeout></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<radius-server-options><radsec /></radius-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<source-interface><source-interface-name>%track-iftype%</source-interface-name><source-interface-value>%interface:interface-type%</source-interface-value></source-interface>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options/source-interface/ethernet

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<loopback><source-interface-value>%loopback-iftype%</source-interface-value></loopback>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options/source-interface/loopback

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<ve><source-interface-value>%ve-iftype%</source-interface-value></ve>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options/source-interface/ve

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<management><source-interface-value>%mm-iftype%</source-interface-value></management>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:radius-server/host=%hostname%,%use-vrf%/radius-server-options/source-interface/management

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><port>%tac-auth-port%</port></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><protocol>%tac-auth-protocols%</protocol></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><key>%string%</key></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><encryption-level>%enumeration%</encryption-level></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><retries>%uint8%</retries></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-server-options><timeout>%uint8%</timeout></tacacs-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<tacacs-source-ip><tacacs-source-int-type>%srcip_type%</tacacs-source-int-type><tacacs-source-int-value>%string-type%</tacacs-source-int-value></tacacs-source-ip>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:tacacs-server/host=%hostname%,%use-vrf%/tacacs-server-options/tacacs-source-ip

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<ldap-server-options><ldaps /></ldap-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<ldap-server-options><port>%ldap-auth-port%</port></ldap-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<ldap-server-options><retries>%uint8%</retries></ldap-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<ldap-server-options><timeout>%uint8%</timeout></ldap-server-options>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/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/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<source-interface><source-intf-type>%source-interface-type%</source-intf-type><source-intf-name>%ethernet-iftype%</source-intf-name></source-interface>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options/source-interface/ethernet

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<loopback><source-intf-name>%loopback-iftype%</source-intf-name></loopback>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options/source-interface/loopback

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<ve><source-intf-name>%ve-iftype%</source-intf-name></ve>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options/source-interface/ve

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<management><source-intf-name>%mm-iftype%</source-intf-name></management>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/host=%hostname%,%use-vrf%/ldap-server-options/source-interface/management

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<group><switch-role>%string%</switch-role></group>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:ldap-server/maprole/group=%ad-group%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><min-length>%uint32%</min-length></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><max-logins>%uint32%</max-logins></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><max-retry>%uint32%</max-retry></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><max-lockout-duration>%uint32%</max-lockout-duration></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><history>%uint32%</history></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><repeat>%uint32%</repeat></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><sequence>%uint32%</sequence></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><force-default-password-change /></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><max-password-age>%uint32%</max-password-age></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<expiry-alert-level><info>%uint32%</info></expiry-alert-level>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes/expiry-alert-level

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<expiry-alert-level><minor>%uint32%</minor></expiry-alert-level>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes/expiry-alert-level

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<expiry-alert-level><major>%uint32%</major></expiry-alert-level>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes/expiry-alert-level

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<expiry-alert-level><critical>%uint32%</critical></expiry-alert-level>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes/expiry-alert-level

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/brocade-aaa:password-attributes/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/brocade-aaa:password-attributes/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/brocade-aaa:password-attributes/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/brocade-aaa:password-attributes/character-restriction

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><admin-lockout-enable /></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<password-attributes><login-notify-duration>%uint32%</login-notify-duration></password-attributes>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:password-attributes

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<banner><login>%string%</login></banner>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:banner

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<banner><motd>%string%</motd></banner>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:banner

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<banner><incoming>%string%</incoming></banner>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:banner

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<rule><action>%rule-action%</action></rule>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<rule><operation>%rule-operation%</operation></rule>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<rule><role>%string%</role></rule>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><enumList>%enumeration%</enumList></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><ethernet-leaf>%interface:interface-type%</ethernet-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><port-channel-leaf>%interface:portchannel-type%</port-channel-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><vlan-leaf>%interface:vlan-type%</vlan-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "[DO NOT USE]<command><management-leaf>%interface:man-interface-type%</management-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><loopback-leaf>%loopback-intf:intf-loopback-port-type%</loopback-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><ve-leaf>%interface:ve-type%</ve-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<command><fibrechannel-leaf>%interface:interface-type%</fibrechannel-leaf></command>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:rule=%index%/command

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<root><enable /></root>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:root-sa/root

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<root><access>%root_access_type%</access></root>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:root-sa/root

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<alias><expansion>%string%</expansion></alias>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:alias-config/alias=%name%

curl -v -X PATCH -H "Content-Type: application/yang-data+xml" -k -d "<alias><expansion>%string%</expansion></alias>"  -u admin:password https://%ipaddress%:443/restconf/data/brocade-aaa:alias-config/user=%name%/alias=%name%

