reference
reference copied to clipboard
gnmi get query with no data
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,