Nokia SR Linux NetOps Development Kit
Project description
The Nokia SR Linux NetOps Development Kit (NDK) allows operators to program high-performance, integrated agents that run alongside the Nokia Service Router Linux (SR Linux).
This repository contains generated Python code for SR Linux NDK Protocol buffers.
Installation
The Python srlinux-ndk
package version is synchronized with the SR Linux NDK protobuf releases.
Use git tags to check out a particular version of the generated package files.
To install the srlinux-ndk
python package with pip
, use one of the following:
# install the latest version from the main branch
pip install https://github.com/nokia/srlinux-ndk-py/archive/main.zip
# install the specific version from github
pip install https://github.com/nokia/srlinux-ndk-py/archive/0.1.0-rc1.zip
These installation steps will install the srlinux-ndk
package on your system. To import the modules from this package:
from ndk import appid_service_pb2
Code generation
This code has been generated from SR Linux NDK Protocol buffers using protoc
compiler with gRPC-Python plugin.
Here is the code generation command that produces the bindings captured in this repo:
Assuming
srlinux-ndk-protobufs
cloned to the home directory and checkout out to the needed release/tag.
docker run -v ~/srlinux-ndk-protobufs:/in -v $(pwd):/out ghcr.io/srl-labs/protoc \
bash -c "python3 -m grpc_tools.protoc -I /in --python_out=/out --grpc_python_out=/out ndk/*.proto"
The python package will appear under ndk
name in the current working directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for srlinux_ndk-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ac36bf4170271aaf41063aa447083d1d068e72699fdbf8def71ec62eb83e567 |
|
MD5 | a7359f2bf49f9dc72756b2dcbc259850 |
|
BLAKE2b-256 | 5e69fe2d1eac05e3d487245021e711993f9f67844af63225ecae20af472f99b9 |