plugins: don't require CNI_NETNS for DEL command
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.
This commit is contained in:
@ -69,7 +69,7 @@ func PluginMain(cmdAdd, cmdDel func(_ *CmdArgs) error) {
|
|||||||
&netns,
|
&netns,
|
||||||
reqForCmdEntry{
|
reqForCmdEntry{
|
||||||
"ADD": true,
|
"ADD": true,
|
||||||
"DEL": true,
|
"DEL": false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user