openconfig / reference

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

Generate proto input message from json #124

Open shushukl-cisco opened 4 years ago

shushukl-cisco commented 4 years ago

Hi,

I want to generate proto inputs in this format from a json equivalent. Is there a way to do so?

path: < elem: < name: "a"

elem: < name: "b"

elem: < name: "c"

elem: < name: "d"

Or is there some proto structure / library I can use to dynamically populate proto structures like the above?

robshakir commented 4 years ago

What is the format of the JSON input that you have? There are two sets of functions that might be of interest in ygot for this:

Cheers, r.