0519
This commit is contained in:
@@ -43,7 +43,7 @@ NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided
|
|||||||
NB_TIMEOUT = 6.0 # seconds per HTTP GET
|
NB_TIMEOUT = 6.0 # seconds per HTTP GET
|
||||||
|
|
||||||
# Cache for MAC -> NetBox lookup result (seconds). Keeps NetBox load down under chatty devices.
|
# 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", "60.0"))
|
NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "120.0"))
|
||||||
NB_LOOKUP_CACHE = {} # mac_norm -> (expires_monotonic, cached_tuple)
|
NB_LOOKUP_CACHE = {} # mac_norm -> (expires_monotonic, cached_tuple)
|
||||||
|
|
||||||
# =========================
|
# =========================
|
||||||
@@ -97,8 +97,8 @@ IGNORE_MACS_RAW = [
|
|||||||
"D0:6C:37:00:BD:B0",
|
"D0:6C:37:00:BD:B0",
|
||||||
"C4:93:00:4E:97:B0",
|
"C4:93:00:4E:97:B0",
|
||||||
#"D0:6C:37:00:A9:68", #### 97227
|
#"D0:6C:37:00:A9:68", #### 97227
|
||||||
|
"D0:6C:37:00:B0:1C", #### 101200
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Global counter for any NetBox-related problems
|
# Global counter for any NetBox-related problems
|
||||||
|
|||||||
Reference in New Issue
Block a user