This commit is contained in:
2026-03-12 10:17:29 +02:00
parent 9eb245a517
commit 8b45630ee4

View File

@@ -43,7 +43,7 @@ NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided
NB_TIMEOUT = 3.0 # seconds per HTTP GET
# Cache for MAC -> NetBox lookup result (seconds). Keeps NetBox load down under chatty devices.
NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "10.0"))
NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "60.0"))
NB_LOOKUP_CACHE = {} # mac_norm -> (expires_monotonic, cached_tuple)
# =========================