routetonull / ipfabric_nornir_demo

inventory module for nornir and tutorials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IP FABRIC NORNIR DEMO

A plugin for nornir to collect the inventory from IP Fabric.

Requires an IP Fabric appliance with some devices in the inventory.

More information about IP Fabric: https://ipfabric.io/

For more examples and code the discussion in https://networktocode.slack.com/ in the IP FABRIC channel.

SETUP

Install nornir

pip3 install nornir

Copy ipfabric.py to nornir inventory path (modify based on the Python version running on your machine)

cp ipfabric.py /usr/local/lib/python3.6/dist-packages/nornir/plugins/inventory/

Edit ipf.env with the credentials to access IP Fabric API

export IPF_URL=https://lab.ipfabric.io
export IPF_USER=admin
export IPF_PASSWORD=admin

Import the env file

source ipf.env

Verify env vars are set

env | grep IPF

About

inventory module for nornir and tutorials

License:MIT License


Languages

Language:Python 100.0%