Releases: openconfig/ygot
Releases · openconfig/ygot
v0.11.3
- Add
IgnoreAdditionsoption forygot.Difffor checking whether A is a subset of B (@dan-lepage). - Update leaf getter comment to say default value will be returned when unset.
- Add
HasDefaultfield toNodeDataMapreturned by ypathgen.
v0.11.2
v0.11.1
v0.11.0
v0.10.16
- Add support for a new marshalling option that allows the
moduleprefix applied to JSON output serialised according to RFC7951 to be removed.
This specifically handles a case whereby YANG augmentations are used to handle backwards compatibility. For example, in the schema "openconfig-foo" if leaf bar was removed, and consumers of the generated GoStructs are using this field - a compatibility approach is to create a module which augments openconfig-foo to add leaf bar back in - perhaps in some module acme-corp-compatibility. In this case, the JSON produced by Marshal7951 with AppendModuleName = true would use this prefix acme-corp-compatibility, this change allows the user to specifically force it to be rewritten to openconfig-foo again to maintain compatibility with a particular downstream consumer.
v0.10.15
- Don't initialize leaf values when unmarshalling valid shadow paths.
- Also remove support for any shadow paths of depth > 1 to reduce code complexity. This is sufficient for the OpenConfig use case. Shadow paths is only relevant for compressed schemas, which is a peculiarity to OpenConfig.
v0.10.14
v0.10.13
- Add the JoinPaths gNMI utility function.