Skip to content
NetDevOps CICD SNMPv3 Demo
Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible add snmp user3 Aug 26, 2019
jenkins
virl updates Aug 12, 2019
.gitignore updates Aug 2, 2019
Makefile Update Makefile Aug 26, 2019
README.md
requirements.txt updates Aug 2, 2019

README.md

Introduction

This repo is based upon a simple NetDevOps demo to deploy SNMPv3 to a Spine and Leaf topology via Ansible. VIRL is also used to create a virtual test network to validate the changes.

VIRL

Topology files for test and prod are located within the virl dir.

.
└── virl
    ├── prod.virl
    └── test.virl

To create fake production network, using the following:

virl up -e prod -f virl/prod.virl

Jenkins

Job XML's are located within the jenkins folder for:

  • Integration
  • Delivery
  • Deployment

Ansible

  • SNMP configuration is defined within group_vars/all.yaml
  • Hosts for the prod and test networks defined within inventory folder files.
  • 2 playbooks included - deploy and test.
.
├── ansible
│   ├── ansible.cfg
│   ├── inventory
│   │   ├── prod
│   │   └── test
│   └── playbooks
│       ├── group_vars
│       │   └── all.yaml
│       ├── host_vars
│       ├── snmp-deploy.yaml
│       └── snmp-test.yaml

Makefile

The Makefile contains all the various steps used within each of the pipelines.

  add-venv                  Install virtualenv, create virtualenv, install requirements
  configure-prod-network    Configure prod network
  configure-test-network    Configure test network
  distroy-test-network      Distroy test network in VIRL
  format                    Remove end of line spaces from yaml files
  install-deps              Install pip
  lint                      Perform linting against ansible yaml files
  remove-venv               Remove virtualenv
  run-tests-prod-network    Run tests against prod network
  run-tests-test-network    Rum tests against test network
  start-test-network        Start test network via VIRL
You can’t perform that action at this time.