/netbox-slurpit-netpicker-demo

Code and scripts for the NetBox, Slurpit, Netpicker demo.

Primary LanguagePython

Slurp'it, Netpicker, and NetBox Demo

This repository contains scripts and examples from the Packet Coders Tech Showcase featuring Slurp'it, Netpicker, and NetBox.

Tools Overview

Learn more about each tool showcased in this repository:

Nornir, NAPALM, and GraphQL Setup

Note: The examples in this repository, including Jinja templates, are built for Cisco IOS devices.

1. Create a Virtual Environment

python3 -m venv .venv
source .venv/bin/activate

2. Update Environment Variables

cp .env.example .env

Update the .env file with your NetBox settings and device credentials.

3. Install Dependencies

pip install -r requirements.txt

4. Run Nornir Scripts

You can now run any of the following Nornir scripts:

  1. Check NetBox is correctly sending inventory data.
    python3 nornir/nr_check_inv.py
  2. Render the Jinja templates using data from NetBox's GraphQL.
    python3 nornir/nr_build.py
  3. Deploy the config out to your devices within your inventory.
    python3 nornir/nr_deploy.py