Skip to content

Commit e99b934

Browse files
committed
save only during endpoint creation or deletion
1 parent 20dd164 commit e99b934

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

network/manager.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ func (nm *networkManager) AddExternalInterface(ifName string, subnet string) err
250250
return err
251251
}
252252

253-
err = nm.save()
254-
if err != nil {
255-
return err
256-
}
257-
258253
return nil
259254
}
260255

@@ -268,11 +263,6 @@ func (nm *networkManager) CreateNetwork(nwInfo *NetworkInfo) error {
268263
return err
269264
}
270265

271-
err = nm.save()
272-
if err != nil {
273-
return err
274-
}
275-
276266
return nil
277267
}
278268

0 commit comments

Comments
 (0)