Skip to content
Snippets Groups Projects
Commit c7e1687b authored by André Sterba's avatar André Sterba
Browse files

Handle error in ChangeOND

parent 6f5d3cf6
No related branches found
No related tags found
1 merge request!150Let user set a name for a device or autogenerate it
This commit is part of merge request !150. Comments created here will be created in the context of that merge request.
......@@ -317,6 +317,9 @@ func (pnd *pndImplementation) ChangeOND(uuid uuid.UUID, operation interface{}, p
}
cpy, err := ygot.DeepCopy(d.GoStruct)
ygot.BuildEmptyTree(cpy)
if err != nil {
return err
}
p, err := ygot.StringToStructuredPath(path)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment