git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96cae22
)
Fix for multiple interfaces per slice
author
Andy Bavier
<acb@cs.princeton.edu>
Wed, 2 May 2012 18:47:04 +0000
(14:47 -0400)
committer
Andy Bavier
<acb@cs.princeton.edu>
Wed, 2 May 2012 18:47:04 +0000
(14:47 -0400)
M-Lab wants an IPv4 and IPv6 address assigned per slice. When more than one interface is added to a slice, the interface/X/ip argument gets filled out correctly but the slice will not start because the 'nodev' option is missing.
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
4724311
..
8f4488b
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-255,6
+255,7
@@
class VServer:
i = 0
for a in addresses.split(","):
self.config.update("interfaces/%d/ip" % i, a)
+ self.config.update("interfaces/%d/nodev" % i, "")
i += 1
while self.config.unset("interfaces/%d/ip" % i):
i += 1