Skip to content

Commit

Permalink
fixup! feat: skip in deleting ips and networks
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Nov 29, 2024
1 parent 5d7d658 commit 7fac8a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ipam/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func (lipam *LiqoIPAM) networkAcquireSpecific(prefix netip.Prefix) (*netip.Prefi
func (lipam *LiqoIPAM) networkRelease(prefix netip.Prefix) error {
result := lipam.IpamCore.NetworkRelease(prefix)
if result == nil {
return fmt.Errorf("failed to free network %q", prefix.String())
klog.Infof("Network %q already freed", prefix.String())
return nil
}
klog.Infof("Freed network %q", prefix.String())

Expand Down

0 comments on commit 7fac8a0

Please sign in to comment.