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:
3511c26
)
Add rate to topo_rspec attribute
author
Andy Bavier
<acb@cs.princeton.edu>
Thu, 19 Feb 2009 18:51:18 +0000
(18:51 +0000)
committer
Andy Bavier
<acb@cs.princeton.edu>
Thu, 19 Feb 2009 18:51:18 +0000
(18:51 +0000)
create-topo-attributes.py
patch
|
blob
|
history
diff --git
a/create-topo-attributes.py
b/create-topo-attributes.py
index
380a147
..
816c819
100755
(executable)
--- a/
create-topo-attributes.py
+++ b/
create-topo-attributes.py
@@
-114,11
+114,10
@@
for slice in GetSlices():
"""
for node in slicenodes:
topo = []
"""
for node in slicenodes:
topo = []
- site = get_site(node)
- for adj in adjacencies[site]:
+ for adj in adjacencies[get_site(node)]:
for adj_node in get_sitenodes(adj):
if node != adj_node and adj_node in slicenodes:
for adj_node in get_sitenodes(adj):
if node != adj_node and adj_node in slicenodes:
- link = adj_node, get_ipaddr(adj_node)
+ link = adj_node, get_ipaddr(adj_node)
, "1Mbit"
topo.append(link)
topo_str = "%s" % topo
print node, topo_str
topo.append(link)
topo_str = "%s" % topo
print node, topo_str