This Repository will give examples of templates used in DNA Center that can be modified. Additional information will be included to hopefully give a well rounded explanation of Automation methods with Templates using DNA Center and flows with both Onboarding and DayN Templates and concepts.
The repository will include scripts and examples with the following:
- Velocity Scripting
- Variables
- Binding Variables
- Composite Templates
The goal of this repository is a practical guide to allow engineers to rapidly begin using DNAC automation and begin conversion of IOS CLI Templates. The Templates they may have been using over the years and with various use cases and so the intent is to reduce the lift to begin automating.
Either one or multiple Templates may be used to deploy Intent in combination with the Design Settings and Policies deployed within the UI. One or Multiple templates may be used in Onboarding (PnP) or Day N methods. Day N methods are designed for making ongoing changes and may require 'no' statements depending on the configuration construct being modified.
Additionally:
- Intent can be defined as the set of configuration constructs deployed via a template.
- Variables can be used to modify or choose between constructs deployed via decision (‘IF’) statements
- Repetition of any construct may be introduced through the use of Looping structures on any device.
- Variables may be used when the device is being onboarded or provisioned
Various sections will be covered within this github repository please use this menu for navigation. Within the various folders are examples, explanation readme files for reference.
- PnP Workflow - This section explains the overall Plug and Play Methodology
- Variables - This section explains Variables in depth and how and where to use them
- Velocity Scripting - This section will dive into Velocity Scripting constructs and use cases
- Building Templates - This section will explain how to build a template on DNAC
- Onboarding Templates - This section will explain Onboarding Templates in DNAC and their use
- DayN Templates - This section will explain how to use templates for ongoing changes to the network
These examples must be used with two conditions:
- Deployed a PnP Discovery method and DHCP scope - see PnP Workflow
- Build the template with methods detailed - see Creating Templates
Specific examples of Templates are available in the following folders:
- PnP Onboarding - Examples of PnP/ZTP Templates explained in Onboarding Templates
- DayN - Examples of DayN Templates explained in DayN Templates
If you found this repository or any section helpful please fill in comments and give feedback on how it could be improved.