Skip to content

Add support for GNMI configuration via PROTO

Proposers

  • Pedro Duarte (University of Aveiro)

Description

The gNMI protocol allows for 5 encodings: JSON, BYTES, PROTO, ASCII and JSON_IETF [Ref-1]. However, in the context of TFS, only devices which make use of JSON_IETF are accepted [Ref-2].

On the other hand, the Stratum project only implements gNMI support through PROTO [Ref-3]. For this, I suggest adding a device configuration field "encoding" for gNMI devices which could be, by default, filled with JSON_IETF while still allowing other protocols to be used.

Demo or definition of done

Successful integration of a Stratum switch with TFS via gNMI.

References

  1. TFS Controller Source Code - gNMI PROTO description
  2. TFS Controller Source Code - gNMI Handler
  3. Support Presentation Slides for gNMI support in Startum (Slide 15)