reference icon indicating copy to clipboard operation
reference copied to clipboard

gnmi get query with no data

Open mahen-g opened this issue 5 years ago • 0 comments

Hi all,

when we perform a gnmi get query (encoding json) with no data existing, should the reponse contain a "" or a {}. I would believe the response should be a {} to indicate the value dies not exist. Can you please conform ? should we follow output-1 or output-2 format ?

output-1

notification { timestamp: 1584125076685184427 update { path { elem { name: "network-instances" } elem { name: "network-instance" key { key: "name" value: "test10" } } } val { json_val: {} } } }

output-2

notification { timestamp: 1584125076685184427 update { path { elem { name: "network-instances" } elem { name: "network-instance" key { key: "name" value: "test10" } } } val { json_val: "" } } }

Thanks,

mahen-g avatar Mar 13 '20 19:03 mahen-g