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_pygnmi
Dev Log
Release 0.1.2:
Added examples.
Modified communication of the task’s status for all tasks.
Release 0.1.1:
Added gnmi_set() task.
Added placeholders for not-implemented methods.
Release 0.1.0:
First alpha release.
(c)2022, karneliuk.com
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.2.tar.gz
(3.5 kB
view details)
File details
Details for the file nornir_pygnmi-0.1.2.tar.gz.
File metadata
- Download URL: nornir_pygnmi-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d397ba5e47c03136df348ab5d2c43fc8111499a8b5f4ec3bf58788b6de188548
|
|
| MD5 |
d17df029e8ca5a8054c04044df629799
|
|
| BLAKE2b-256 |
6f3d0dd2c8695b1766ccfa08f60065b3466b067de5a674f2d38df2f80e9f2623
|