timeforplanb123 / StupidLegacyCI

Example of a CI Gitlab pipeline with Nornir, NetBox, Pytest for a Legacy Network

Home Page:https://timeforplanb123.github.io/stupid-legacy-ci/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StupidLegacyCI

Overview:

  • Gitlab pipeline uses local runner - "docker0"
  • The job update_cache works by schedule and updates the necessary Python packages
  • The job compare_commits compares YAMLs of the previous and current commit with git diff. The result - YAMLs list where network parameters have changed
  • The job tests run Pytest with stdout parameter and short traceback. As instance, in repository we have single test - test_snmp.py. It's template for any other tests
  • The job run run YAML Handler, stupid_ci.py, for creating config based on these YAMLs

About

Example of a CI Gitlab pipeline with Nornir, NetBox, Pytest for a Legacy Network

https://timeforplanb123.github.io/stupid-legacy-ci/


Languages

Language:Python 95.3%Language:Jinja 4.7%