NSO Rollback no-deploy through RESTCONF API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 08:20 AM
An action can do almost anything it wants, including starting multiple transactions with different flags of its own choosing.
This will work today if you use one of the transactional APIs – NETCONF or json-rpc for instance – but there have been plans to add additional action parameters to make this functionality accessible through RESTCONF for some actions.
