Difference between revisions of "Sweetcomb/gNMIServer"
From fd.io
m (→gNMI Server) |
m (→Testing gNMI server functionalities) |
||
Line 13: | Line 13: | ||
There are multiple gNMI clients available: | There are multiple gNMI clients available: | ||
− | * Arista [https://github.com/aristanetworks/goarista/tree/master/cmd/gnmi gnmi] | + | * Arista [https://github.com/aristanetworks/goarista/tree/master/cmd/gnmi gnmi]: Support capabilities, get, set, subscribe RPCs |
− | * Openconfig [https://github.com/openconfig/gnmi gnmi_cli] | + | |
+ | * Openconfig [https://github.com/openconfig/gnmi gnmi_cli]: | ||
+ | |||
* Google [https://github.com/google/gnxi/tree/master/gnmi_capabilities gnmi_capabilities] | * Google [https://github.com/google/gnxi/tree/master/gnmi_capabilities gnmi_capabilities] | ||
− | * Google [https://github.com/google/gnxi/tree/master/gnmi_get gnmi_get] | + | * Google [https://github.com/google/gnxi/tree/master/gnmi_get gnmi_get] |
* Google [https://github.com/google/gnxi/tree/master/gnmi_set gnmi_set] | * Google [https://github.com/google/gnxi/tree/master/gnmi_set gnmi_set] | ||
Line 28: | Line 30: | ||
NB: Please note that gnmi client don't work with ":" separator in xpath. They only use "/". | NB: Please note that gnmi client don't work with ":" separator in xpath. They only use "/". | ||
+ | |||
+ | NB2: default encoding is JSON IETF encoding. |
Revision as of 14:30, 3 April 2019
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
- Openconfig gnmi_cli:
- Google gnmi_capabilities
- Google gnmi_get
- Google gnmi_set
gnmi_capabilities -notls -target_addr localhost:50051
gnmi_get -notls -target_addr localhost:50051 -xpath "/ietf-interfaces/interface-state"
NB: Please note that gnmi client don't work with ":" separator in xpath. They only use "/".
NB2: default encoding is JSON IETF encoding.