08-31-2020 12:34 PM
Does the dry-run query work with the apply-template action? Trying to run via restconf and do something similar to this:
devices device lab1 apply-template template-name test commit dry-run
https://<NSO_HOST>/restconf/data/tailf-ncs:devices/device=lab1/apply-template/?dryrun=native
Body:
Commits the config and doesn't return a dry-run.
Solved! Go to Solution.
08-31-2020 12:41 PM
08-31-2020 12:41 PM
08-31-2020 12:46 PM
Thanks for the fast reply. I was just curious if this was possible. For our use case, we don't need it and I guess if you really did you could just use config-template and see the dry-run. Just nice sometimes to push commands via apply-template on the fly and the cli makes it easy to do a 'commit dry-run'.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide