From be6e1940eab67c48d1da077ad792639ed4f45676 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 11 Jun 2016 21:32:02 +0200 Subject: Tiny refactoring --- haircontrol/discovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haircontrol/discovery.py b/haircontrol/discovery.py index 991abc3..9fd29da 100644 --- a/haircontrol/discovery.py +++ b/haircontrol/discovery.py @@ -206,7 +206,7 @@ class Discovery: ### State variables - # FIXME: mac2ip() method is incomplete so it sometimes fail + # FIXME: mac2ip() method is incomplete so it sometimes fails # finding the IP from the MAC of some interface. Meanwhile, we # build our own database. mac_to_ip = {} @@ -285,7 +285,7 @@ class Discovery: for (ip, equipment) in equipments.items(): if is_at_next_level(equipment): link_to_outer_net(equipment) - current_level.append(equipment.mgmtip) + current_level.append(ip) outer_net.extend(current_level) for ip in current_level: del equipments[ip] exit_iface = self.net.equipments[gateway_ip].ifaces[gateway_iface_name] -- cgit v1.1