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
Remove topo_rspec attributes if egre_key not present
[nodemanager-topo.git]
/
create-topo-attributes.py
diff --git
a/create-topo-attributes.py
b/create-topo-attributes.py
index
816c819
..
6d64d99
100755
(executable)
--- a/
create-topo-attributes.py
+++ b/
create-topo-attributes.py
@@
-128,9
+128,10
@@
for slice in GetSlices():
id = slice['slice_id']
AddSliceAttribute(id, 'topo_rspec', topo_str, node)
id = slice['slice_id']
AddSliceAttribute(id, 'topo_rspec', topo_str, node)
- """ Remove old topo_rspec entries """
- for node in topo_attr:
- DeleteSliceAttribute(topo_attr[node])
-
else:
print "No EGRE key for %s" % slice['name']
else:
print "No EGRE key for %s" % slice['name']
+
+ """ Remove old topo_rspec entries """
+ for node in topo_attr:
+ DeleteSliceAttribute(topo_attr[node])
+