In this video, we define NetDevOps, what it can accomplish, and what bold, but worth it, changes it requires. Then, we will demonstrate a simple but effective NetDevOps CI pipeline that utilizes a GitHub repo and webhook, the Jenkins continuous integration tool, the pytest testing framework, and Webex for alerting. All of this technology is currently free.
The code used in this demo can be found on the Cisco Code Exchange at: http://cs.co/simple-netdevops-ci
We will build upon the work we did in the previous DevOps Shop, Intro to Ansible for Automation, where we used Ansible for automating the creation, updating, and deleting of ACLs on Cisco routers.
Intro to Ansible for Automation - DevOps Shop series video
http://cs.co/6052PNGAn
The code used in the Ansible video can be found at: http://cs.co/6053PNGAX
Don’t forget to check out the DevOps GroupHub on the Cisco Community: https://cs.co/devops-community
0:00 - Intro
0:09 - Agenda
0:35 - NetDevOps principles and cultural changes required
1:27 - Alternate terms for NetDevOps
1:45 - NetDevOps for reliability via automation, IaC, programmability, and validation & testing
2:04 - Building upon the previous DevOps Shop: “Intro to Ansible for Automation”
2:32 - Forking the GitHub repository and planning the webhook
2:56 - Using ngrok for secure tunneling of Jenkins local port for the webhook
3:36 - Creating the GitHub webhook
4:00 - Jenkins installation and setup
4:51 - Jenkins Freestyle project setup
5:30 - Verifying that the GitHub webhook reaches Jenkins
5:41 - How and where Jenkins clones the GitHub repo locally, plus our tests and scripts
6:10 - Jenkins build step with shell to run script for pytest testing of code from GitHub in virtual environment
6:51 - Flow of project processes, from GitHub repo and webhook, to Jenkins build script and testing, and Webex alerting
8:05 - Outro, Cisco DevOps forum
The technologies used in this video include:
Ansible
http://cs.co/6055PNGAZ
GitHub
http://cs.co/6057PNGAb
Jenkins
http://cs.co/6058PNGAj
pytest
http://cs.co/6059PNGAd
Webex
http://cs.co/6050PNGAe