reference icon indicating copy to clipboard operation
reference copied to clipboard

gNMI: how to indicate no data to return in GetResponse

Open jsterne opened this issue 8 years ago • 1 comments

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):

  1. A Get that specifies a path to a leaf that is deleted
  2. 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

jsterne avatar Jan 04 '17 23:01 jsterne

This is being examined in #144.

robshakir avatar Feb 22 '22 15:02 robshakir