Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gNMI: how to indicate no data to return in GetResponse #40

Open
jsterne opened this issue Jan 4, 2017 · 1 comment
Open

gNMI: how to indicate no data to return in GetResponse #40

jsterne opened this issue Jan 4, 2017 · 1 comment

Comments

@jsterne
Copy link

jsterne commented Jan 4, 2017

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

@robshakir
Copy link
Contributor

This is being examined in #144.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants