From c8f85be09fbce589067ae1c62d565ce404ec3673 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 18 Nov 2011 17:00:51 -0500 Subject: [PATCH] fix bug in get_links() --- sfa/plc/aggregate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sfa/plc/aggregate.py b/sfa/plc/aggregate.py index 3ec538ad..afd72352 100644 --- 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 -- 2.43.0