git://git.halfball.org
/
plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7de8d4
)
plugins: don't require CNI_NETNS for DEL command
author
Stefan Junker
<mail@stefanjunker.de>
Fri, 27 May 2016 08:57:39 +0000
(10:57 +0200)
committer
Stefan Junker
<mail@stefanjunker.de>
Fri, 27 May 2016 08:57:39 +0000
(10:57 +0200)
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
patch
|
blob
|
history
diff --git
a/skel/skel.go
b/skel/skel.go
index
1f9438c
..
9cf0391
100644
(file)
--- a/
skel/skel.go
+++ b/
skel/skel.go
@@
-69,7
+69,7
@@
func PluginMain(cmdAdd, cmdDel func(_ *CmdArgs) error) {
&netns,
reqForCmdEntry{
"ADD": true,
- "DEL":
tru
e,
+ "DEL":
fals
e,
},
},
{