Skip to content

NSO-developer/nso-gnmi-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gNMI Adapter for NSO

This is an gNMI Adapter NSO Python package. This package adds gNMI support to NSO.

It contains a YANG data model which implements the configuration (port, security).

Build

You will also need sources from https://github.com/ConfD-Developer/gnmi-tools linked into the python directory.

Tip
cd python; ln -s ../../gnmi-tools/src/*.py .; cd ..

Configuration

Following elements can be configured (nso-gnmi-tools.yang).

  • nso-gnmi-tools/port - the port the gNMI server listens on

  • nso-gnmi-tools/tls/enabled - if TLS is enabled

  • nso-gnmi-tools/tls/keyFile - server key file (must be configured if TLS is enabled)

  • nso-gnmi-tools/tls/certFile - certificate file (must be configured if TLS is enabled)

Note
Example how to create server key and certificate file, see gnmi-tools sources, file make-keys.sh.

Run

Create NSO run dir

ncs-project create nso-gnmi`

and link this package to packages folder, e.g.

cd packages; ln -s ../../nso-gnmi-tools/; cd ..`
Note
Optionally, copy server keys and certificate file to this directory.

start nso ncs or ncs --package-with-reload

When NSO is started, the gNMI server is started as well. When nso-gnmi-tools configuration is changed, the gNMI server is restarted with the new configuration.

Usage

Use gNMI client (e.g. one present in gnmi-tools) to invoke gNMI operations against config and state data in NSO.

E.g.:

./src/confd_gnmi_client.py --insecure -o capabilities
./src/confd_gnmi_client.py --insecure -o get  --path /python-vm
./src/confd_gnmi_client.py --insecure -o subscribe -s POLL --poll-count=100  --path /python-vm --allow-aggregation

Issues and error reporting

Report only NSO package related issues. gNMI related issues should be reported in original gnmi-tools repository.

Tip
Run gNMI server standalone against NSO (./src/confd_gnmi_server -t nso) when reproducing the gNMI related issue.

About

This is an gNMI Adapter NSO Python package. This package adds gNMI support to NSO. This is a mirror of https://gitlab.com/nso-developer/nso-gnmi-tools

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published