From a963a9e0f75ee538b4cd5b5f907621cda2d1228a Mon Sep 17 00:00:00 2001 From: pavel Date: Mon, 9 Mar 2026 08:28:28 +0200 Subject: [PATCH] 0823 --- files/nats_registration_listener.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/files/nats_registration_listener.py b/files/nats_registration_listener.py index f3f7851..36c8a42 100644 --- a/files/nats_registration_listener.py +++ b/files/nats_registration_listener.py @@ -73,6 +73,15 @@ PRODUCT_TAG_SLUG = { # "fox200": "fox200-auto-upgrade-latest", } +# MACs to ignore completely when seen in registrations +IGNORE_MACS_RAW = [ + "AA:BB:CC:DD:EE:FF", + "D0:6C:37:00:D5:84", + "44:D1:FA:7E:3F:65", + "D0:6C:37:00:E6:D8", + "C4:93:00:4E:92:7C", +] + # Global counter for any NetBox-related problems NB_PROBLEM_COUNTER = 0 NB_PROBLEM_LOCK = asyncio.Lock() @@ -173,6 +182,9 @@ def normalize_mac(mac: str) -> Optional[str]: return None +IGNORE_MACS = {m for m in (normalize_mac(x) for x in IGNORE_MACS_RAW) if m} + + def http_get_json(url: str, params: Optional[Dict[str, str]] = None, headers: Optional[Dict[str, str]] = None, timeout: float = NB_TIMEOUT): if params: url = f"{url}?{urlencode(params)}"