openconfig / reference

This repository contains reference implementations, specifications and tooling related to OpenConfig-based network management.
Apache License 2.0
155 stars 88 forks source link

Get Response in case of multikey path should be sorted at server side or client ? #204

Open quity opened 5 months ago

quity commented 5 months ago

If a path is a/b/c/name[key1=val1][key2=val2] for a gRPC GET request, the order of keys(alphabetical order) here in response should be maintained by client or server ?

AsyncGet(GetResponse) =>

Notification[0]: timestamp : 662426695970000000 prefix : – Update[000] : Path : "a" "b" "c" "name[key1=val1][key2=val2]"

as mentioned in spec - If multiple keys exist for a particular element, they MUST be specified sorted alphabetically by the key name.
robshakir commented 5 months ago

This should be implemented at the server side for both Subscribe and Get in my view.

quity commented 5 months ago

Thanks @robshakir .