Skip to content
New issue

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

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

Already on GitHub? # to your account

What should gNMI Get do when there's no data to be returned? #122

Open
kyoungyun opened this issue Mar 31, 2020 · 1 comment
Open

What should gNMI Get do when there's no data to be returned? #122

kyoungyun opened this issue Mar 31, 2020 · 1 comment

Comments

@kyoungyun
Copy link

Hi.
What should be the gNMI Get behavior when there’s no data to be returned from a query on a valid path? The spec. seems to be unclear about this. Which one of the following should be returned?

  • an empty json_val/json_ietf_val (i.e., "")
  • “{}” in json_val/json_ietf_val
  • no val field at all
  • an error
  • something else
@aashaikh
Copy link
Contributor

Agree this could use some clarification. I expect there are some different perspectives depending on the situation -- e.g., a query for a list element that doesn't exist (similar to #119), a configuration value that has not been set, an opstate value that has a valid path but is not supported by the platform, etc.

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

No branches or pull requests

2 participants