

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 Go code for SR Linux NDK Protocol buffers.
Module import paths
The Go module version is synchronized with the SR Linux NDK protobuf releases.
Users can fetch the Go bindings for NDK v0.1.0 with go get command as follows:
# get latest ndk package
go get github.com/nokia/srlinux-ndk-go
# get a specific version of the ndk package
go get github.com/nokia/srlinux-ndk-go@v0.1.0
To use the ndk package, use the following import statement:
import "github.com/nokia/srlinux-ndk-go/ndk"
Code generation
This code has been generated from SR Linux NDK Protocol buffers using protoc compiler with the gRPC-Go plugin.
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 "protoc --go_out=paths=source_relative:/out --go-grpc_out=paths=source_relative:/out ndk/*.proto"
The Go package directory named srlinux-ndk will be created in the current working directory.