DNAC-Template-Deploy
Deploy templates
This script allows you to deploy at scale by consuming the deploy API of DNAC. DNAC can deploy up to 100 devices per API call; On line 39 of the main.py you can set your group size (1 to 100) by changing the integer value of the group_size variable. Lets say we want to deploy a template across 1000 devices; if we set the group size to 100 then the script will make a total of 10 API calls (10 groups of 100). FYI The deploy API is rate limited to 100 calls per minute.
- Check Requirements.txt for library dependencies.
- Run the main.py script from terminal or your favorite IDE. You will be prompted for the DNAC URL, username and password.
Look at screenshot below for correct format on URL.
- Select Platform to deploy on and hit Enter and confirm your choice. Platforms are numbered on the left starting from 0-X (e.g enter 3 and press enter). Confirm your choice y/n.
- Select a Project name that houses templates. Projects are numbered on the left starting from 0-X (e.g enter 3 and press enter). Confirm your choice y/n.
- Select a Template to deploy. Templates are numbered on the left starting from 0-X (e.g enter 3 and press enter). Confirm choice y/n.
- Results.