kebaldwi/NET-AUTOMATE
À propos
This repository provides examples and guidance for automation and orchestration of Cisco Enterprise Networking for Cisco Cloud Control, Meraki, Catalyst Center and beyond. It covers various aspects of network automation, including Plug and Play (PnP), Cisco Workflows, onboarding and day-N templates, and the use of Velocity and Jinja2 scripting.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalNET-AUTOMATE 
[!NOTE] :mega: Thank you for continuing your support of the NET-AUTOMATE Repository formerly known as CATC-TEMPLATES by your continued visits to the site. The site originally was intended to share template automation and orchestration information for Catalyst Center. While we will continue to have that as a focus, we have recently been adding support for the Dashboard environment and for Cisco Workflows. We are augmenting the labs and tutorials for Dashboard and Cisco Workflows as well.
:mega: As with all things there is change. The name has changed again to stay relevant with Cisco Enterprise Networking Automation. To that end the first of the changes will be there will be additional automation content being added to the repo for:
- Dashboard to automate it. Labs and tutorials will again all be added to be as concise as possible.
- Cisco Workflows which is generally available at now.
Over the next few months you will notice more lab updates to the repository, as we add additional content.
Enterprise Networking Platforms
Catalyst Center

Catalyst Center is an intelligent Automation and Assurance platform for the campus. Catalyst Center enables, simplified Day-0 through Day-N management of switching, routing, and wireless infrastructure. It also improves operations with AI/ML-enhanced analytics to streamline troubleshooting and provide actionable insights into the health of the network and the quality of experience for users and applications. Here are some of the capabilities of Catalyst Center in their respective domains:
- NetOps: Network Plug and Play for Zero Touch Deployment, Software Image Management, Compliance, Configuration Templates and Network Profiles, Model-Driven Configuration, and RMA Support.
- AIOps: AI/ML-enhanced monitoring and troubleshooting support. Predictive Insights, Network Baselines, Network Reasoner, Device/Client/Application 360, Intelligent Capture.
- SecOps: AI Endpoint Analytics, Group-Based Policy and Analytics, Software-Defined Access
- DevOps: ITSM Integrations, APIs, SDK & Ansible Module
Dashboard

Dashboard is a cloud-managed networking platform that unifies configuration, monitoring, and security across distributed networks. It delivers streamlined Day-0 through Day-N operations for wireless, switching, security appliances, SD-WAN, cameras, and IoT, all from a single, intuitive web interface. Powered by cloud analytics and automation, Dashboard accelerates deployment, simplifies troubleshooting, and provides actionable insights into network health, user experience, and security posture. Here are some of the capabilities of Dashboard in their respective domains:
- NetOps: Zero-touch provisioning with Cloud provisioning and templates, centralized configuration and change management, firmware management, network cloning, topology views, and automatic VPN.
- AIOps: Cloud-powered analytics and anomaly detection, client and device health insights, application visibility and performance metrics, intelligent alerts, and recommended fixes.
- SecOps: Integrated next-gen firewall, IPS/IDS, content filtering, malware protection, Zero Trust policies with Adaptive Policy (group-based policy), and secure SD-WAN with threat analytics.
- DevOps: Comprehensive REST APIs and webhooks, dashboard and device APIs, ecosystem marketplace integrations, and automation via SDKs and templates.
Overview
This Repository will give examples of templates used in Catalyst Center that can be modified. Additional information will be included to hopefully give a well rounded explanation of Automation methods with Templates using Catalyst Center and flows with both Onboarding and DayN Templates and concepts.
The repository will include scripts and examples with the following:
- Template Scripting for both Jinja and Velocity
- Variable notation and usage
- Binding Variables
- System Variables
- Regular Templates
- Composite Templates
- Cisco Workflows
- REST-API automation utilizing:
- Postman, and Bruno
- Python and SDK's
- Orchestrations utilizing:
- Cisco Workflows
- Ansible
- NSO
- CICD Pipelines using:
- Jenkins
- GitLab Pipeline
- GithHub Actions
The goal of this repository is a practical guide to allow engineers to rapidly begin using Catalyst Center automation and begin conversion of IOS CLI Templates. The Templates have been developed over the years and with various use cases in mind, and so the intent of sharing this collection 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:
- Intent can be defined as the set of code along with the 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
Tutorials
Various sections will be covered within this github repository. Please use this menu as the main index for navigating content. You will find various examples within the various folders of this repository, with supplied explanation readme files for reference.
Design
- Management and Scale - This section explains general design, management and scale of Catalyst Center
- Software Image Management (SWIM) - This section explains how to use SWIM for staging and activating software
- Application QoS Policy - This section explains how to use Application QoS for automating QoS at scale in an Enterprise.
Configuration Automation
PnP Workflow - This section explains the overall Plug and Play Methodology
Onboarding Templates - This section will explain Onboarding Templates in Catalyst Center and their use in bringing various devices under Catalyst Center management
DayN Templates - This section will explain how to use templates for ongoing (Day-N) changes to the network
Templating
Building Templates - This section will explain how to build a template on Catalyst Center from scratch
Velocity Language
- Velocity Variables - This section explains Template Variables in depth, and how and where to use them
- Velocity Scripting - This section will dive into Velocity Language Template Scripting constructs and use cases
- Advanced Velocity Scripting - This section will dive into Advanced Velocity Language Template examples
Jinja2 Language
- Jinja2 Variables - This section explains Template Variables in depth, and how and where to use them
- Jinja2 Scripting - This section will dive into Jinja2 Language Template Scripting constructs and use cases
- Advanced Jinja2 Scripting - This section will dive into Advanced Jinja2 Language Template examples
Advanced Automation Use Cases
- Advanced Templating - This section will dive into advanced templating concepts and use cases within Catalyst Center
- Embedded Event Manager - This section will dive into EEM (Embedded Event Manager) Scripting and various use cases
- System Variables - This section explains Catalyst Centers System Variables
Platform Orchestration
Labs and resources aimed at Orchestration that may be used xArchitecturally.
Catalyst Center
- REST API Orchestration - This section is a high level discussion of utlilizing REST API with Catalyst Center
- Python Orchestration - This section is a high level discussion of utilizing Python with Catalyst Center
- Ansible Orchestration - This section is a high level discussion of Ansible orchestration of Catalyst Center
- CICD Orchestration - This section is a high level discussion of CICD orchestration of Catalyst Center
Dashboard
:mega: Upcoming stay tuned!
Cisco Workflows
- Cisco Workflows - This section is a high level discussion of REST-API orchestration using Cisco Workflows
Fault-Finding
- Troubleshooting - This section will dive into Troubleshooting Velocity based Template Constructs
Miscellaneous
- Certificates - This section will dive into creating a Certificate for Catalyst Center using OPENSSL.
- Utilities - This section has Python Coded tools to get past specific issues in Catalyst Center.
LABS
This section built out in a lab format to guide you through the typical steps to complete various automation tasks delivered by Catalyst Center. It allows for customers to practice Catalyst Center workflows with Onboarding, DayN Templates, and Application Policy automation on both Wired and Wireless Platforms, while reducing the time and effort needed to instantiate the network The lab will also introduce advanced velocity templating topics and troubleshooting tools, which may help determine common failure scenarios in a deployment.
[!IMPORTANT] Please note that LAB content in this Repository is aligned with specific DCLOUD Demonstrations that have to be set up by either a Cisco Employee or a Cisco Partner. If you are having trouble accessing the DCLOUD content please get in touch with your Local Cisco Account Team.
Lab Content
This newer and more modular lab approach is designed to deal with and includes concepts from the legacy labs in a newer more modular format.
Catalyst Center
- Lab 1 Wired Automation - Covers green and brown field use cases (allow 4.0 hrs)
- Lab 2 Wireless Automation - Covers traditional wireless automation (allow 4.0 hrs)
- Lab 3 Advanced Automation - Covers how to build templates and logic (allow 4.0 hrs)
Dashboard
:mega: Upcoming stay tuned!
Platform Orchestration
Labs and resources aimed at Orchestration that may be used Cross Architecturally.
Catalyst Center
- Lab 4 Rest-API Orchestration - Covers Postman automation and orchestration of Catalyst Center (allow 2.0 hrs)
- Lab 5 Python Orchestration - In Development - Covers Python automation and orchestration of Catalyst Center (allow 3.0 hrs)
- Lab 6 Ansible Orchestration - Covers how to use GitOps to Orchestrate Catalyst Center (allow 8.0 hrs)
- Lab 7 CICD Orchestration - Covers Python with JENKINS orchestration via REST-API (allow 4.0 hrs)
- Lab 8 Cisco Workflows - Catalyst Center - Covers how to use GitOps to Orchestrate Catalyst Center (allow 8.0 hrs)
- Lab 10 GitOps Orchestration - Covers how to use GitOps to Orchestrate Catalyst Center (allow 8.0 hrs)
Dashboard
:mega: Upcoming stay tuned!
Cisco Workflows
- Lab 8 Cisco Workflows - Getting Started - Covers orchestration via REST-API (allow 2.0 hrs)
ISE
- Lab 9 ISE Automation - Covers how to automate ISE (allow 4.0 hrs)
Specific Lab Content
In this legacy lab section you will continue to find all the existing labs which deal with specifics in separate easy to do labs. This set of labs is being depricated due to new content above.
Expand section for Specific Lab Content if required
- [PnP Preparation](https://github.com/kebaldwi/DNAC-TEMPLATES/blob/master/LABS/ LAB-1-Wired-Automation/module1-pnpprep.md) - The lab covers setup for Plug and Play ** (allow 1.5 hrs)**
- [Onboarding Templates](https://github.com/kebaldwi/DNAC-TEMPLATES/blob/master/LABS/ LAB-1-Wired-Automation/module2-pnp.md) - The lab covers in depth topics in deploying Day 0 templates (allow 1.5 hrs)
- [Day N Templates](https://github.com/kebaldwi/DNAC-TEMPLATES/blob/master/LABS/ LAB-1-Wired-Automation/module3-dayn.md) - The lab covers Day N template constructs and use cases (allow 0.5 hrs)
- [Composite Templates](https://github.com/kebaldwi/DNAC-TEMPLATES/blob/master/LABS/ LAB-1-Wired-Automation/module3-dayn.md) - This lab covers building a composite template on Catalyst Center (allow 0.5 hrs)
- [Application Policys](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-1-Wired-Automationy/module4-applicationqos.md) - This lab covers Application Policy & SDAVC in Catalyst Center (allow 1.0 hrs)
- [Telemetry](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-1-Wired-Automation/module5-telemetry.md) - This lab explains how to deploy Streaming Telemetry for Catalyst Center Assurance (allow 0.5 hrs)
- [Advanced Automation](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-1-Wired-Automation/module6-advanced.md) - This lab will explore Advanced Automation examples (allow 1.5 hrs)
- [Dynamic Automation](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-3-Advanced-Automation/) - This lab will explore additional Advanced Automation examples (allow 2.0 hrs)
- [Rest-API Orchestration](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-4-Rest-API-Orchestration/) - This lab uses Postman Collections to automate Catalyst Center (allow 2.0 hrs)
- [Wireless Automation](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-2-Wireless-Automation/) - This lab covers Traditional Wireless Automation (allow 6.0 hrs)
- [Orchestration](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-K-Orchestration/) - This lab covers Postman and [Ansible] (https://www.ansible.com) orchestration (allow 4.0 hrs)
- [CICD Orchestration](https://github.com/kebaldwi/DNAC-TEMPLATES/tree/master/LABS/ LAB-7-CICD-Orchestration/) This lab covers Python, [Ansible] (https://www.ansible.com) and JENKINS to orchestrate via REST-API (allow 4.0 hrs)
LAB Resources
Overview
As a quick start with Catalyst Center Automation, you may utilize the above labs in conjuction with DCLOUD's sandbox:
- Cisco Enterprise Networks Hardware Sandbox West DC
- Cisco Enterprise Networks Hardware Sandbox East DC
This allows you to run these labs and gives not only an environment to try the various code samples, but also to develop and export your own code for use in your production environment. DCLOUD provides for rapid and safe POC/POV on-demand environment without impacting production environments. DCLOUD also negates the need for shipping equipment, associated lead times, and licensing issues associated with setting up your own private testing environment. Please do adhere to the best practices for the DCLOUD environment when using it.
DCLOUD allows for use with a web-based browser client for VPN-less connectivity, as well as AnyConnect VPN client connectivity for those who prefer it. The labs are hosted in Cisco San Jose Facility (Select US East or US West Region when scheduling in DCLOUD). Choose the Cisco Enterprise Network Sandbox version you prefer.
[!IMPORTANT] To access this or any other content, including demonstrations, labs, and training in DCLOUD please work with your Cisco Account team or Cisco Partner Account Team directly. Your Account teams will make sure the session is scheduled and shared for you to use. Once booked follow the guide within Github to complete the tasks adhering to the best practices of the DCLOUD environment.
Templates Store
This CODE repository is built out to share Catalyst Center Automations and Templates and allow for ongoing submissions from those inclined to share their work with the community. Initially the repository includes all the examples that we have used in this repository in RAW TEXT and JSON format.
The CODE is also offered in Latest Release Candidates automatically
[!IMPORTANT] The locations for examples have been consolidated here. If you have a template your proud of and you want your name in lights please submit them and we will include them in the repository giving you an honourable mention.
If you wish to contribute to the templates please submit here
Velocity Scripting Language
- DayN Velocity Examples - JSON files for easy import to Catalyst Center for Day N
- Onboarding Velocity Examples - JSON files for easy import to Catalyst Center for Day Zero
Jinja2 Scripting Language
- DayN Jinja2 Examples - JSON files for easy import to Catalyst Center for Day N
- Onboarding Jinja2 Examples - JSON files for easy import to Catalyst Center for Day Zero
- Wireless Jinja2 Examples - JSON files for easy import to Catalyst Center for Wireless
- RAW TEXT Examples - Templates in raw text for editing
Other Examples
Other Automation Scripts and Documentation used in these labs or elsewhere.
| Descriptions | Folders |
|---|---|
| Cisco Documentation | [Docs Folder](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/DOCS/) |
| Jenkins Scripts | [Jenkins Examples](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/JENKINS/) |
| Postman Collections | [Postman Collections](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/POSTMAN/) |
| Python Code Examples | [Python Code](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/PYTHON/) |
| Useful Shell Scripts | [Shell Scripts](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/SHELL/) |
| Template Folder | [Template Folder](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/TEMPLATES/) |
| CSV Data Examples | [CSV Examples](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/DATA/CSV/) |
| JSON Data Examples | [JSON Examples](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/DATA/JSON/) |
| YAML Data Examples | [YAML Examples](https://github.com/kebaldwi/ DNAC-TEMPLATES/tree/master/CODE/DATA/YAML/) |
Practical Template Examples
In this section I have compiled a number of template examples built with Jinja2 Language. These samples include a wide ranging set of configurations which may be used in your labs to solve specific configuration requirements. This collection summarizes aspects covered previously in this templating repository, and are aimed at providing quick practical references to help engineers solve automation tasks with the help of Catalyst Center. Additionally these examples may be used in testing in DCLOUD with any of the labs on this repository.
Practical examples can be located here: Practical Template Examples
[!IMPORTANT]
Discussions
Discussions: is now now open, so please do use that for feedback suggestions on improvements or other ideas, please use this link: Discussions
Feedback
Feedback: If you found this set of labs or content helpful, please fill in comments on this feedback form give feedback.
Content Problems and Issues
Issues: will now be used to track problems with documentation or the labs and code, please use this link: Issue
Explorer des projets similaires
Chargement…