This will allow to free up the IPAM allocations when the caller doesn't
have access to the network namespace anymore, e.g. due to a reboot.
&netns,
reqForCmdEntry{
"ADD": true,
- "DEL": true,
+ "DEL": false,
},
},
{
return err
}
+ if args.Netns == "" {
+ return nil
+ }
+
var ipn *net.IPNet
err = ns.WithNetNSPath(args.Netns, func(_ ns.NetNS) error {
var err error
return err
}
+ if args.Netns == "" {
+ return nil
+ }
+
return ns.WithNetNSPath(args.Netns, func(_ ns.NetNS) error {
return ip.DelLinkByName(args.IfName)
})
return err
}
+ if args.Netns == "" {
+ return nil
+ }
+
return ns.WithNetNSPath(args.Netns, func(_ ns.NetNS) error {
return ip.DelLinkByName(args.IfName)
})
return err
}
+ if args.Netns == "" {
+ return nil
+ }
+
var ipn *net.IPNet
err := ns.WithNetNSPath(args.Netns, func(_ ns.NetNS) error {
var err error