From 5fe036b88ac070a0cfa3a2508847404ada9383bc Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Fri, 27 May 2016 10:57:39 +0200 Subject: [PATCH] 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. --- skel/skel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skel/skel.go b/skel/skel.go index 1f9438c1..9cf03917 100644 --- a/skel/skel.go +++ b/skel/skel.go @@ -69,7 +69,7 @@ func PluginMain(cmdAdd, cmdDel func(_ *CmdArgs) error) { &netns, reqForCmdEntry{ "ADD": true, - "DEL": true, + "DEL": false, }, }, {