pyGNMI plugin for Nornir.
Project description
pyGNMI plugin for Nornir
This repository contains GNMI plugin for Nornir leveraging pyGNMI library
Usage
Sample code example:
# Modules
from nornir.init_nornir import InitNornir
from nornir_utils.plugins.functions import print_result
from nornir_pygnmi.tasks import gnmi_capabilities
# Statics
NORNIR_CONFIG = "./config.yaml"
# Body
if __name__ == "__main__":
# Initialise Nornir
nrn = InitNornir(config_file=NORNIR_CONFIG)
# Run task
result1 = nrn.run(task=gnmi_capabilities)
print_result(result1)
Installation
pip install nornir_pygnm
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nornir_pygnmi-0.1.0.tar.gz
(2.8 kB
view details)
File details
Details for the file nornir_pygnmi-0.1.0.tar.gz.
File metadata
- Download URL: nornir_pygnmi-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
500f6f7ae5cadd2f0ce35435d74c9f67e982d6fe28a9216d2f93f00d2a9fbe7d
|
|
| MD5 |
665f44567f5a7a9dd53851a791a261db
|
|
| BLAKE2b-256 |
023af5e371365d82ae9b43798316165bd615e407ba1f1315b8439e91014e6a8a
|