Skip to content

Examples of Templates used in DNA Center with Velocity Scripting, Variables, and Composite Approaches

License

Notifications You must be signed in to change notification settings

rasmusgand/DNAC-TEMPLATES

 
 

Repository files navigation

DNAC-TEMPLATES

Overview

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:

  1. Velocity Scripting
  2. Variables
  3. Binding Variables
  4. 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.

Intent Based Networking

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:

  1. Intent can be defined as the set of configuration constructs deployed via a template.
  2. Variables can be used to modify or choose between constructs deployed via decision (‘IF’) statements
  3. Repetition of any construct may be introduced through the use of Looping structures on any device.
  4. Variables may be used when the device is being onboarded or provisioned

Sections

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

Examples

These examples must be used with two conditions:

Specific examples of Templates are available in the following folders:

If you found this repository or any section helpful please fill in comments and give feedback on how it could be improved.

About

Examples of Templates used in DNA Center with Velocity Scripting, Variables, and Composite Approaches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published