git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge changeset 11123 from the trunk
[nodemanager.git]
/
plugins
/
vsys.py
diff --git
a/vsys.py
b/plugins/vsys.py
similarity index 98%
rename from
vsys.py
rename to
plugins/vsys.py
index
c72941c
..
d26ee4a
100644
(file)
--- a/
vsys.py
+++ b/
plugins/vsys.py
@@
-25,7
+25,7
@@
def GetSlivers(data):
# Parse attributes and update dict of scripts
for sliver in data['slivers']:
for attribute in sliver['attributes']:
# Parse attributes and update dict of scripts
for sliver in data['slivers']:
for attribute in sliver['attributes']:
- if attribute['name'] == 'vsys':
+ if attribute['
tag
name'] == 'vsys':
if sliver['name'] not in slices:
# add to conf
slices.append(sliver['name'])
if sliver['name'] not in slices:
# add to conf
slices.append(sliver['name'])
@@
-46,7
+46,7
@@
def createVsysDir(sliver):
try:
os.mkdir("/vservers/%s/vsys" % sliver)
return True
try:
os.mkdir("/vservers/%s/vsys" % sliver)
return True
- except OSError:
+ except OSError:
return False
return False