Skip to content
Snippets Groups Projects

Fix: Set does not update the model within the database

Merged Ghost User requested to merge hotfix-set-does-not-update-database-model into develop
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -149,6 +149,9 @@ func (pnd *pndImplementation) Commit(u uuid.UUID) error {
// Set all the changes within the network elements model
networkElement, err := pnd.networkElementService.Get(store.Query{ID: ch.AssociatedDeviceID()})
if err != nil {
return err
}
diff, err := ygot.Diff(ch.PreviousState(), ch.IntendedState())
for _, update := range diff.GetUpdate() {
opts := []ytypes.SetNodeOpt{&ytypes.InitMissingElements{}, &ytypes.TolerateJSONInconsistencies{}}
Loading