A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.8...v0.29.9
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.7...v0.29.8
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.6...v0.29.7
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.5...v0.29.6
This release fixes a build error due to not pinning the experimental slices package. The Go team made a backwards-incompatible change to this package in the last 24 hours presumably in preparation for making it as part of the standard library in Go 1.21. The version has now been pinned in go.mod
to avoid this issue.
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.4...v0.29.5
ordered by user
lists for Internal JSON format was generating non-backwards-compatible JSON.Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.3...v0.29.4
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.2...v0.29.3
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.1...v0.29.2
Full Changelog: https://github.com/openconfig/ygot/compare/v0.29.0...v0.29.1
ordered-by user
lists via generating a custom Go struct satisfying the ygot.GoOrderedMap
interface.
GetOrCreate
methods are removed and must be replaced by AppendNew
methods, which now returns an error when there is an existing element. For a full set of methods see here, or here for an example generated code with ordered maps.cmp
. You may consider changing these comparisons to use ygot.Diff
.-generate_ordered_maps=false
when calling the ygot generator. However, this means ygot will marshal such configuration in a random order, since the built-in Go map type does not preserve element ordering. Notably, this applies to OpenConfig BGP policy statements (see this for discussion on adding telemetry-atomic
).atomic
gNMI notifications for TogNMINotifications
by @wenovus in https://github.com/openconfig/ygot/pull/840
DeleteNode
for ordered maps by @wenovus in https://github.com/openconfig/ygot/pull/850
Notification
for ordered lists. by @wenovus in https://github.com/openconfig/ygot/pull/851
util.GetNodes
in favour of ytypes.GetNode
by @wenovus in https://github.com/openconfig/ygot/pull/852
interface{}
-> any
for render{_test}.go by @wenovus in https://github.com/openconfig/ygot/pull/855
ForEachField
and dependent helpers support ordered maps by @wenovus in https://github.com/openconfig/ygot/pull/854
Construct[IETF|Internal]JSON
to return the default Go types. by @wenovus in https://github.com/openconfig/ygot/pull/856
ForEachDataField
, DeepCopy
, Merge
for ordered maps. by @wenovus in https://github.com/openconfig/ygot/pull/860
ForEachDataField2
by @wenovus in https://github.com/openconfig/ygot/pull/862
ygot
package. by @wenovus in https://github.com/openconfig/ygot/pull/872
OrderedList
type to IR by @wenovus in https://github.com/openconfig/ygot/pull/879
Full Changelog: https://github.com/openconfig/ygot/compare/v0.28.3...v0.29.0