fixed edge refactoring issue when finding next subnet

This commit is contained in:
Blake Harnden 2019-12-19 11:10:08 -08:00
parent 05d3b58c5f
commit 105825808d

View file

@ -21,7 +21,8 @@ class InterfaceManager:
def next_subnet(self):
# define currently used subnets
used_subnets = set()
for link in self.app.core.links.values():
for edge in self.app.core.links.values():
link = edge.link
if link.HasField("interface_one"):
subnet = self.get_subnet(link.interface_one)
used_subnets.add(subnet)