Giter Site home page Giter Site logo

emomeni / netdevops-cicd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gt732/netdevops-cicd

2.0 0.0 1.0 14 KB

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

License: MIT License

Python 76.56% Jinja 23.44%

netdevops-cicd's Introduction

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

netdevops-cicd's People

Contributors

gt732 avatar

Stargazers

 avatar  avatar

Forkers

ttweed98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.