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

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

parent c0b8b690
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
...@@ -114,7 +114,10 @@ func unmarshal(schema *ytypes.Schema, bytes []byte, fields []string, goStruct yg ...@@ -114,7 +114,10 @@ func unmarshal(schema *ytypes.Schema, bytes []byte, fields []string, goStruct yg
return err return err
} }
ygot.PruneEmptyBranches(validatedDeepCopy) 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 // 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