Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cni/network/invoker_azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func (invoker *AzureIPAMInvoker) Add(addConfig IPAMAddConfig) (IPAMAddResult, er

if err != nil && strings.Contains(err.Error(), ipam.ErrNoAvailableAddressPools.Error()) {
invoker.deleteIpamState()
log.Printf("Retry pool allocation after deleting IPAM state")
addResult.ipv4Result, err = invoker.plugin.DelegateAdd(addConfig.nwCfg.IPAM.Type, addConfig.nwCfg)
}
if err != nil {
err = invoker.plugin.Errorf("Failed to allocate pool: %v", err)
Expand Down
10 changes: 0 additions & 10 deletions network/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ func (nm *networkManager) AddExternalInterface(ifName string, subnet string) err
return err
}

err = nm.save()
if err != nil {
return err
}

return nil
}

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

err = nm.save()
if err != nil {
return err
}

return nil
}

Expand Down
Loading