"""
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:
- 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
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']
+
+ """ Remove old topo_rspec entries """
+ for node in topo_attr:
+ DeleteSliceAttribute(topo_attr[node])
+