
********************************************************************************
* 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 "<test-profile><type>%y1731-profile-type%</type></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<test-profile><tx-interval>%y1731-profile-tx-interval%</tx-interval></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<test-profile><measurement-interval>%uint32%</measurement-interval></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<test-profile><cos>%uint8%</cos></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<test-profile><tx-frame-count>%uint32%</tx-frame-count></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<test-profile><timeout>%uint8%</timeout></test-profile>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%


curl -v -X PATCH -d "<start><start-type>%schedule-type%</start-type><start-time>%time-in-hhmmss%</start-time></start>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/start


curl -v -X PATCH -d "<start><start-periodic>%y1731-start-periodic%</start-periodic></start>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/start


curl -v -X PATCH -d "<stop><stop-type>%schedule-type%</stop-type><stop-time>%time-in-hhmmss%</stop-time></stop>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/stop


curl -v -X PATCH -d "<forward><average>%uint32%</average></forward>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold/forward


curl -v -X PATCH -d "<forward><maximum>%uint32%</maximum></forward>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold/forward


curl -v -X PATCH -d "<backward><average>%uint32%</average></backward>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold/backward


curl -v -X PATCH -d "<backward><maximum>%uint32%</maximum></backward>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold/backward


curl -v -X PATCH -d "<threshold><average>%uint32%</average></threshold>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold


curl -v -X PATCH -d "<threshold><maximum>%uint32%</maximum></threshold>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/test-profile/%test-profile%/threshold


curl -v -X PATCH -d "<ccm-up><actions>%action-profile-bitmap%</actions></ccm-up>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/action-profile/%action-profile-name%/event/ccm-up


curl -v -X PATCH -d "<ccm-down><actions>%action-profile-bitmap%</actions></ccm-down>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/action-profile/%action-profile-name%/event/ccm-down


curl -v -X PATCH -d "<avg-threshold><actions>%action-profile-bitmap%</actions></avg-threshold>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/action-profile/%action-profile-name%/event/avg-threshold


curl -v -X PATCH -d "<max-threshold><actions>%action-profile-bitmap%</actions></max-threshold>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/y1731/action-profile/%action-profile-name%/event/max-threshold


curl -v -X PATCH -d "<domain-name><id>%uint32%</id><level>%uint32%</level></domain-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%


curl -v -X PATCH -d "<ma-name><id>%uint32%</id><vlan>%uint32%</vlan><priority>%uint32%</priority></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%

curl -v -X PATCH -d "<ma-name><id>%uint32%</id><bridge-domain>%uint32%</bridge-domain><priority>%uint32%</priority></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%


curl -v -X PATCH -d "<ma-name><ccm-interval>%ccm-interval-type%</ccm-interval></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%


curl -v -X PATCH -d "<ma-name><mip-policy>%mip-policy-type%</mip-policy></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%


curl -v -X PATCH -d "<ma-name><icc-name>%string%</icc-name><umc-name>%string%</umc-name></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%


curl -v -X PATCH -d "<ma-name><maid-format>%maid-format-type%</maid-format></ma-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%


curl -v -X PATCH -d "<mep><mep-down-up>%mep-down-up-type%</mep-down-up><vlan>%uint32%</vlan><inner-vlan>%uint32%</inner-vlan><mep-intf-type>%dot1ag-interface-type%</mep-intf-type><mep-intf-name>%dot1ag-interface-name%</mep-intf-name></mep>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%/mep/%mep-id%


curl -v -X PATCH -d "<mep><tlv-type>%ccm-tlv-type%</tlv-type></mep>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%/mep/%mep-id%


curl -v -X PATCH -d "<client-interface><client-intf-type>%dot1ag-interface-type%</client-intf-type><client-intf-name>%dot1ag-interface-name%</client-intf-name><csf-type>%eth-csf-type%</csf-type><tx-period>%csf-tx-period%</tx-period></client-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%/mep/%mep-id%/client-interface


curl -v -X PATCH -d "<remote-mep><action-profile>%string%</action-profile></remote-mep>"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/cfm/domain-name/%domain-name%/ma-name/%ma-name%/mep/%mep-id%/remote-mep/%remote-mep%

