git://git.onelab.eu
/
nodemanager-topo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5ebfa8
)
Remove topo_rspec attributes if egre_key not present
author
Andy Bavier
<acb@cs.princeton.edu>
Thu, 19 Feb 2009 19:32:15 +0000
(19:32 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Thu, 19 Feb 2009 19:32:15 +0000
(19:32 +0000)
create-topo-attributes.py
patch
|
blob
|
history
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])
+