Be nice. Be respectful.
The project uses a git submodule under the vendor directory to keep proto files in
sync with upstream. You can update the module and regenerate the related source using make
.
make update
You can use the google/gnxi/gnmi_target to test the client
code. You can set this up using the the following commands (assuming you have ``golangand
GOPATH` configured
correctly).
go get -u github.com/google/gnxi/gnmi_target
go install -v github.com/google/gnxi/gnmi_target
You can use the provided sample configuration. If you do not have a local copy
of the repository, fetch it using curl
.
curl -sLO https://raw.githubusercontent.com/python-gnxi/python-gnmi-proto/master/tests/integration/fixtures/config.json
Once you have a configuration you can start the server like shown below.
gnmi_target \
-bind_address ":9339" \
-username admin \
-password secret \
-logtostderr \
-notls \
-config tests/integration/fixtures/config.json