Add all the networks in a vertex to the index in VertexFinder.

styling
LEdoian 1 year ago
parent 7cf33d0fa2
commit b9ae64f643

@ -269,8 +269,12 @@ class VertexFinder:
self.topologies.append(topo)
for v in topo.vertices:
id = v.id
self.vertices[id].add(topo)
self.vertices[id].append(topo)
# Add to various "indices"
if isinstance(id.address, tuple):
for addr in id.address:
self.by_addr[addr].add(id)
else:
self.by_addr[id.address].add(id)
self.by_rid[id.router_id].add(id)
self.by_dr[id.dr_id].add(id)

Loading…
Cancel
Save