Sweetcomb/gNMIServer
From fd.io
Contents
gNMI Server
gNMI stands for gRPC Network Management Interface, it works like a client server protocol offering a set of 4 RPCs:
- Capabilities
- Get
- Set
- Subscribe
A demo of gNMI server can be found here FD.io's vpp meets gNMI
Testing gNMI server functionalities
There are multiple gNMI clients available:
- Arista gnmi: Support capabilities, get, set, subscribe RPCs only with IETF JSON encoding.
- Openconfig gnmi_cli:
- Google gnmi_capabilities, gnmi_get, gnmi_set
- Nokia pygnmi: Support subscribe RPC only
- Cisco pipeline-gnmi: For telemetry (subscribe) only
Arista gNMI client
gnmi -addr localhost:50051 update /ietf-interfaces:interfaces/interface[name="GigabitEthernet0/9/0"]/enabled true
Google gNMI client
gnmi_capabilities -notls -target_addr localhost:50051
gnmi_get -notls -target_addr localhost:50051 -xpath "/ietf-interfaces/interface-state"
NB: Please note that google gnmi client don't work with ":" separator in xpath. They only use "/".
NB2: default encoding is JSON IETF encoding.