Skip to content

routetonull/ipfabric_nornir_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Languages