Skip to content

Releases: openconfig/ygot

v0.11.3

28 Jul 21:59
3361cdb

Choose a tag to compare

  • Add IgnoreAdditions option for ygot.Diff for checking whether A is a subset of B (@dan-lepage).
  • Update leaf getter comment to say default value will be returned when unset.
  • Add HasDefault field to NodeDataMap returned by ypathgen.

v0.11.2

30 Jun 17:24
d9bb850

Choose a tag to compare

  • [Go]: Resolve conflict when a multi-keyed list contains a container named "key".

v0.11.1

28 Jun 17:23
5ba0876

Choose a tag to compare

  • Add Fakeroot to NodeDataMap return value for ypathgen's GeneratePathCode.

v0.11.0

20 Jun 21:47
926dd30

Choose a tag to compare

  • Add key to shadow-path annotation.
  • Change reverseShadowPath -> preferShadowPath for [Getxxx|Set]Node functions (backwards incompatible).

v0.10.16

18 Jun 20:09
dbe2718

Choose a tag to compare

  • Add support for a new marshalling option that allows the module prefix 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

15 Jun 22:55
2713b98

Choose a tag to compare

  • 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

14 Jun 19:51
dcfe4c7

Choose a tag to compare

Add support for mapping compressed schemas into protomap.

v0.10.13

11 Jun 04:43
7889ea7

Choose a tag to compare

  • Add the JoinPaths gNMI utility function.

v0.10.12

07 Jun 20:48
449c150

Choose a tag to compare

  • Fix bug in protomap's handling of nil list members within a ygot-generated protobuf.

v0.10.11

26 May 21:58
75ebd15

Choose a tag to compare

  • Add LocalGoTypeName to NodeDataMap for ypathgen.
  • Add option for ytypes.[Set/Get/GetCreate/Delete]Node() for reversing "shadow-path" and "path" behaviour.