diff --git a/routlin/maintenance.py b/routlin/maintenance.py index c2d1caa..0a84d9b 100644 --- a/routlin/maintenance.py +++ b/routlin/maintenance.py @@ -583,7 +583,7 @@ def refresh_arp_cache(cfg): idx = parts.index('lladdr') mac = parts[idx + 1].lower() if mac not in best or used_secs < best[mac][0]: - best[mac] = (used_secs, {'ip': parts[0], 'state': state}) + best[mac] = (used_secs, {'ip': parts[0], 'state': 'REACHABLE'}) ARP_CACHE_FILE.write_text(json.dumps({m: e for m, (_, e) in best.items()})) except Exception as exc: print(f"WARNING: Could not refresh ARP cache: {exc}")