Skip to content
Snippets Groups Projects
Commit b091a1a2 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

further testing with deletes,WIP

parent fce9ef34
No related branches found
No related tags found
3 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI,!342Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline #109916 passed
......@@ -312,6 +312,18 @@ func (g *Gnmi) processResponseDeletes(deletes []*gpb.Path, root ygot.ValidatedGo
if err := ytypes.DeleteNode(s.RootSchema(), root, path); err != nil {
errs = append(errs, err)
}
modelAsString, _ := ygot.EmitJSON(root, &ygot.EmitJSONConfig{
Format: ygot.RFC7951,
Indent: "",
SkipValidation: true,
RFC7951Config: &ygot.RFC7951JSONConfig{
AppendModuleName: true,
}})
if err := g.Unmarshal([]byte(modelAsString), path, root); err != nil {
errs = append(errs, err)
}
log.Error(root)
}
if len(errs) != 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment