A collection of tools for Network Management that use the gNMI and gNOI protocols.
Notes about these tools:
-logtostderr=false
.-v 1
to log proto message exchanges.These instructions will get you a copy of the project up and running on your local machine.
Install go in your system https://golang.org/doc/install. Requires golang1.14+.
go get github.com/google/gnxi
ls $GOPATH/src/github.com/google/gnxi
cd $GOPATH
mkdir bin
# This reads the go modules dependencies for installation
cd src/github.com/google/gnxi
go install ./...
ls -la $GOPATH/bin
cd $GOPATH/bin
./../src/github.com/google/gnxi/certs/generate.sh
cd $GOPATH/bin
./gnoi_reset \
-target_addr localhost:9339 \
-target_name target.com \
-rollback_os \
-zero_fill \
-key client.key \
-cert client.crt \
-ca ca.crt
Optionally define $GOBIN as $GOPATH/bin and add it to your path to run the binaries from any folder.
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN