09-21-2020 01:52 AM
Is it possible to perform a rollback through NSO RESTCONF API specifying parameters such as "no-deploy"?
I have tried the following procedure, but the "no-deploy" flag is not working/ignored:
POST /restconf/data/tailf-rollback:rollback-files/apply-rollback-file?no-deploy' \ --header 'Content-Type: application/yang-data+json' \ --data-raw '{ "input": { "fixed-number": "10593", "selective": "" } } '
This call would rollback and deploy the configuration straight to the network device, ignoring the "no-deploy" flag. Do I have to specify this parameter in another format?
We are using NSO 4.7.2.1
Thanks, regards!
09-23-2020 06:33 AM
That may be a bug in RESTCONF. I encountered a similar issue with the dry-run parameter being ignored when trying to trigger a rollback through RESTCONF in NSO 5.2, and was told by NSO support that the parameter should be accepted, and that this was a bug.
Do you get the same behaviour if you try other parameters, like dry-run or no-networking? If so, I would suggest raising a support case.
09-23-2020 08:20 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: