git://git.onelab.eu
/
nodemanager-topo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update for MyPLC 4.3
[nodemanager-topo.git]
/
topo.py
diff --git
a/topo.py
b/topo.py
index
a9a9853
..
e73eb8a
100755
(executable)
--- a/
topo.py
+++ b/
topo.py
@@
-356,7
+356,7
@@
def GetSlivers(data):
for sliver in data['slivers']:
attrs = {}
for attribute in sliver['attributes']:
for sliver in data['slivers']:
attrs = {}
for attribute in sliver['attributes']:
- attrs[attribute['name']] = attribute['value']
+ attrs[attribute['
tag
name']] = attribute['value']
if 'netns' in attrs:
netns = int(attrs['netns'])
writeConf(sliver['name'], netns)
if 'netns' in attrs:
netns = int(attrs['netns'])
writeConf(sliver['name'], netns)