Skip to content

Python implementation of the gRPC service for interacting with network devices based on OpenConfig models (DEPRECATED)

License

Notifications You must be signed in to change notification settings

aristanetworks/pyopenconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

DEPRECATED

Please refer to gnmi/proto for the generated Python code to access the gNMI service.

If you're looking for a command-line tool to access gNMI check out gnmi.

pyopenconfig

Python client and library for the OpenConfig gRPC interface.

The version of the gRPC proto definition being uses is tracked in pyopenconfig/reference_version.

Installation

pip install git+git://github.com/aristanetworks/pyopenconfig.git

Usage

usage: openconfig_client.py [-h] [--host HOST] [--port PORT]
                            [--get GET | --subscribe SUBSCRIBE]

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           OpenConfig server host
  --port PORT           OpenConfig server port
  --username USERNAME   username
  --password PASSWORD   password
  --get GET             OpenConfig path to perform a single-shot get (default:
                        None)
  --subscribe SUBSCRIBE
                        OpenConfig path to subscribe to (default: /)

Sample usage

openconfig_client.py --host arista --port 6042 --get /vlans/vlan/42

About

Python implementation of the gRPC service for interacting with network devices based on OpenConfig models (DEPRECATED)

Resources

License

Stars

Watchers

Forks

Packages