reference
reference copied to clipboard
gNMI: how to indicate no data to return in GetResponse
Hi guys,
What should a GetResponse look like if there is no data to return ? I've seen some discussion of a similar scenario for Subscriptions in other git issues but not sure about response to a specific GetRequest.
A few examples of scenarios where there is no data to return (assume a request with just a single path):
- A Get that specifies a path to a leaf that is deleted
- A Get that specifies a path to a list member that doesn't currently exist (but could in the future/past)
If we're using JSON encoding, and there is no data to return: a) return value.value=”{}” and encoding = JSON ? b) return the null string value.value=”” and encoding = ? c) return a response with the absence of the value.value field ? d) return a response with the absence of the Value message ? e) return a response with the absence of the Update message ? f) return a response with the absence of the Notification message ?
Thx, Jason
This is being examined in #144.