How gRPC server can determine the client's gNMI.proto version ?

16 views
Skip to first unread message

Shikha Chowdhary

unread,
Dec 1, 2020, 8:16:27 AM12/1/20
to grpc.io
Hello, 

I am using gNMI proto and it supports different version/option like 020, 040, 070 etc. How gRPC server can determine which version of gNMI.proto is requesting data? Each version is little different in terms of variables.

-Thanks
Shikha

Mya Pitzeruse

unread,
Dec 2, 2020, 9:52:21 AM12/2/20
to Shikha Chowdhary, grpc.io
I _think_ this is the system you're referring to: https://github.com/openconfig/gnmi/blob/d2b4e6a45802a75b3571a627519cae85a197fdda/proto/gnmi/gnmi.proto#L38-L40

I might try reaching out to the gNMI folks (just in case they're not on this group). From a quick read over the proto, it doesn't seem like the RPC's have built that in from the client perspective (the server returns the version as part of the CapabilitiesResponse). If you have control over the client, you _could_ peel the value off the descriptor and send it along in a header (if they aren't already doing something like that).


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/3740493a-a771-4575-967a-fbd8f5dffcbbn%40googlegroups.com.


--
Mya Pitzeruse
Gender Pronouns: She, Her, Hers

Reply all
Reply to author
Forward
0 new messages