-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I was demonstrating this script to a Cisco customer recently (part of a Customer Success engagement) and we discovered that even when we specified the --preview command line option, the script still deployed the specified template to the target device.
Here is an example of the command line options we used:
py template.py --device "10.7.84.244" --template "Onboarding Configuration/CSV_Import_Interface_Loop" --paramsfile "9300_interface_info.csv" -v --preview
After some troubleshooting I identified a missing line of code at Line 241 in the template.py script (link below). I recommend adding sys.exit(0) on this line, in order to stop the script after displaying the Preview output and prevent it from continuing on to the deployment stage.
DNAC-TemplateProgrammer/template.py
Line 241 in ac2c85a