diff --git a/nucleus/southbound.go b/nucleus/southbound.go index 9de3b15fe408b8bd73173dda0c067b34a70accbf..92446ae2daf5283905ff66b62c63e54e86f57c54 100644 --- a/nucleus/southbound.go +++ b/nucleus/southbound.go @@ -114,7 +114,8 @@ func unmarshal(schema *ytypes.Schema, bytes []byte, fields []string, goStruct yg return err } ygot.PruneEmptyBranches(validatedDeepCopy) - return ygot.MergeStructInto(goStruct, validatedDeepCopy) + + return ygot.MergeStructInto(goStruct, validatedDeepCopy, &ygot.MergeOverwriteExistingFields{}) } // getField traverses the GoStruct and returns the field that represents the