diff options
-rw-r--r-- | haircontrol/discovery.py | 4 |
1 files 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] |