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

encoding the root node #50

Closed wisotzky closed 7 years ago

wisotzky commented 7 years ago

The latest available version of gnmi specification (v0.2.2) is specifying the following: The root node (/) is indicated by encoding a single path element which is an empty string

While in the gnmi path conventions (Feb 2017) the root path is defined as zero length list.

So need clearly to define if the root node is encoded as [] or [""] using python syntax.

Little remark: The release date in the gnmi path conventions is Feb 2016 - but should be Feb 2017.

robshakir commented 7 years ago

Hi,

The root node is encoded as [] in Python, the latter document is correct. We're just working on updating the document to cover the changes in 0.3.1.

Thanks, r.

wisotzky commented 7 years ago

@robshakir I have contributed my gNMI Subscribe() client in Python under MIT license: https://github.com/nokia/pygnmi

Scope of work is the current Nokia SR OS implementation for the gNMI-based Telemetry interface.