Skip to content
Snippets Groups Projects
Commit 75bacde2 authored by Malte Bauch's avatar Malte Bauch
Browse files

Merge branch '147-some-paths-of-a-device-cant-be-requested-more-than-once' into 'develop'

Resolve "Some paths of a device cant be requested more than once"

See merge request !210
parents 2fc92dd7 44186b36
No related branches found
No related tags found
7 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!210Resolve "Some paths of a device cant be requested more than once",!138Develop
Pipeline #86166 failed
......@@ -114,7 +114,10 @@ func unmarshal(schema *ytypes.Schema, bytes []byte, fields []string, goStruct yg
return err
}
ygot.PruneEmptyBranches(validatedDeepCopy)
return ygot.MergeStructInto(goStruct, validatedDeepCopy)
opts := []ygot.MergeOpt{&ygot.MergeOverwriteExistingFields{}}
return ygot.MergeStructInto(goStruct, validatedDeepCopy, opts...)
}
// getField traverses the GoStruct and returns the field that represents the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment