GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gt732/netdevops-cicd: ci-cd pipeline using Nornir-Napalm for configuration, and Pytest for pre/post validation checks.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
group_vars
group_vars
 
 
host_vars
host_vars
 
 
inventory
inventory
 
 
templates
templates
 
 
tests
tests
 
 
.drone.yaml
.drone.yaml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
dmvpn.py
dmvpn.py
 
 
tools.py
tools.py
 
 

Repository files navigation

netdevops-cicd

My first netdevops ci-cd pipeline using the following tools, shoutout to @JulioPDX for putting together his guide here https://juliopdx.com/2021/10/20/building-a-network-ci/cd-pipeline-part-1/

  • Nornir-Napalm for device configuration
  • Drone CI/CD
  • Pytest for pre/post validation checks
  • Custom Docker container

Topology

alt text

Steps

  • Clone the main repo
  • Create a new branch
  • Update the global variable YAML file updating the DMVPN Tunnel Secret
  • Push changes and publish new branch, create PR
  • New branch triggers CI/CD pipeline for pre validation checks to TEST devices
  • Pre check consist of running NAPALM in dry run mode first , then pushing the changes, then pytest for testing DMVPN Tunnel State
  • If checks pass and PR is merged, it triggers the last CI/CD pipeline
  • Napalm dry run, push changes, and post validation check with pytest to PROD devices.

Starting the CI/CD pipeline by creating a new PR

alt text

Pre-Check Napalm Dry-Run Validation to TEST Devices

alt text

Pre-Check Napalm Push Config to TEST Devices

alt text

Pre-Check Pytest script to check if all DMVPN Tunnels are UP TEST Devices

alt text

PR request accepted and merged to master, triggers CD pipeline

alt text

Napalm Dry-Run Validation to PROD Devices

alt text

Napalm Push Config to PROD Devices

alt text

Finally, Pytest to check DMVPN Tunnel Status on PROD Devices

alt text

About

ci-cd pipeline using Nornir-Napalm for configuration, and Pytest for pre/post validation checks.

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.