Skip to main content

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

Dev Log

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.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file nornir_pygnmi-0.1.1.tar.gz.

File metadata

  • Download URL: nornir_pygnmi-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for nornir_pygnmi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 677b755c6480da74ac1dbc206fa375c1afb40bca4a470e3e59b80775b731539a
MD5 6ccfc65846fe2a5487b02f68f8611292
BLAKE2b-256 705f7e0148191f01f9ffc2c57b69ec080143c1e297c8ddae0b9e13060a10efac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page