Closed wisotzky closed 6 years ago
Duplicate of https://github.com/openconfig/gnmi/issues/11
I have a pending change that fixes this which was blocked on https://github.com/openconfig/ygot/pull/122 (coincidentally, just merged). Will hopefully push it today/tomorrow.
Unfortunately the Path encoding has changed since gNMI version 0.4: https://github.com/openconfig/gnmi/commit/09cf23da6f4e669a4a11e334c6208b787fed7f22#diff-2c94239e729daff1e1db0c192c4d4eda
While repeated string element was used until version 0.3, this attribute is now deprecated. Instead repeated PathElem elem is used. The main difference is, that in the old encoding, the keys have been part of the string - such as "port[port-id=1/1/1]" while now the keys are properly encoded using map <string, string>.
This change impacts compatibility between gNMI servers and client. The current gnmi_cli client produces the following errors when running against a gnmi 0.4/0.5 server (e.g. NOKIA routers running SR OS 15.1).
I've already changed my Python client accordingly: https://www.github.com/nokia/pygnmi