nornir_ipfabric
IPFabric Inventory plugin for nornir.
Install
The recommended way to install nornir_ipfabric is via pip
pip install nornir-ipfabric
Requirements
An instance of IP Fabric is required to collect information. Request trial license.
Example usage
Using env vars
Set environment vars to provide url and credentials to connect to the IP Fabric server
export IPF_URL=https://ipfabric.local
export IPF_USER=admin
export IPF_PASSWORD=mySecretPassword
If IP Fabric version 3.7 or above is in use, token authentication is available
export IPF_URL=https://ipfabric.local
export IPF_TOKEN=myToken
from nornir import InitNornir
nr = InitNornir(inventory={"plugin": "IPFabricInventory"})
Using the InitNornir function
Init with credentials
from nornir import InitNornir
nr = InitNornir(
inventory=
{
"plugin": "IPFabricInventory",
"options": {
"ipf_url":"https://ipfabric.local",
"ipf_user":"admin",
"ipf_password":"mySecretPassword",
},
},
)
Init with token
from nornir import InitNornir
nr = InitNornir(
inventory=
{
"plugin": "IPFabricInventory",
"options": {
"ipf_url":"https://ipfabric.local",
"ipf_token":"myToken",
},
},
)
Using the Nornir configuration file
File config.yaml with credendials
---
inventory:
plugin: IPFInventory
options:
ipf_url: "https://ipfabric.local"
ipf_user: "admin"
ipf_password: "mySecretPassword"
File config.yaml with token
---
inventory:
plugin: IPFInventory
options:
ipf_url: "https://ipfabric.local"
ipf_token: "myToken"
Usage:
from nornir import InitNornir
nr = InitNornir(config_file="config.yaml",inventory={"plugin": "IPFabricInventory"})
Useful Links
Metadata
Release files for nornir-ipfabric 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nornir_ipfabric-0.1.4-py3.8.egg | Legacy Egg format | - | - | Details for nornir_ipfabric-0.1.4-py3.8.egg |
| nornir_ipfabric-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for nornir_ipfabric-0.1.4-py3-none-any.whl |
Total release size: 18.5 kB
Release files / nornir_ipfabric-0.1.4-py3.8.egg
| Download URL | nornir_ipfabric-0.1.4-py3.8.egg |
|---|---|
| Size | 8.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
adc1f84560da592bb7671f6edd5892c1c8d40e4a2b4f9631a6d16275735eb07d
|
|
BLAKE2b-256 checksum How to use checksums |
f2bbec4200f4af553803f048bb05d737e6838d1054ae60b72c83103aca6d7ecc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5
|
Release files / nornir_ipfabric-0.1.4-py3-none-any.whl
| Download URL | nornir_ipfabric-0.1.4-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e92197d8695669fcbab15a6d931e2df4a8a2b95a38a812f376ea3a7578b3e958
|
|
BLAKE2b-256 checksum How to use checksums |
909214832e428d8420381dfe8fecaa96660c7c294f93726eaab222b75856506b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5
|
Security for nornir-ipfabric 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.