git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c4cd30
)
fix bug in get_links()
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 18 Nov 2011 22:00:51 +0000
(17:00 -0500)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Fri, 18 Nov 2011 22:01:02 +0000
(17:01 -0500)
sfa/plc/aggregate.py
patch
|
blob
|
history
diff --git
a/sfa/plc/aggregate.py
b/sfa/plc/aggregate.py
index
3ec538a
..
afd7235
100644
(file)
--- a/
sfa/plc/aggregate.py
+++ b/
sfa/plc/aggregate.py
@@
-60,6
+60,8
@@
class Aggregate:
for s1_node_id in site1['node_ids']:
for s2_node_id in site2['node_ids']:
+ if s1_node_id not in nodes or s2_node_id not in nodes:
+ continue
node1 = nodes[s1_node_id]
node2 = nodes[s2_node_id]
# set interfaces