Skip to content

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

@jsterne

Description

@jsterne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions