Open blnprasad opened 5 years ago
We started the work to convert between the generated Go structs and Protobufs, which is also described in this document. Currently, there's some outstanding work to be completed here. PRs to help implement this design, or improve upon it, are very welcome.
Thank you. Also i'm planning to get difference between two go structs in following way for given configuration section But i see it increasingly difficult to access value using path string(.RelayAgent.Dhcp.Interface["xyz"]). Any suggestions? https://github.com/d4l3k/messagediff
To diff two generated structs you can use ygot.Diff
. It outputs the diff between two Go structs that were generated by ygot
using a series of gNMI Notification
messages to describe the difference.
We started the work to convert between the generated Go structs and Protobufs, which is also described in this document. Currently, there's some outstanding work to be completed here. PRs to help implement this design, or improve upon it, are very welcome.
I get access denied when trying to access that document, can it be made public?
We started the work to convert between the generated Go structs and Protobufs, which is also described in this document. Currently, there's some outstanding work to be completed here. PRs to help implement this design, or improve upon it, are very welcome.
I get access denied when trying to access that document, can it be made public?
+1 to this
I've generated go structs which i'm populating from json. After validation, i want to store/share in protobuf serialized format. I'm not finding proper way for conversion between generated go structs and protobuf. Is there any workaround?