Some devices have manufacturer name "detect" #127

This commit is contained in:
tomaae 2021-05-23 01:17:54 +02:00
parent cf2bd1de2a
commit 40f95e95f2

View file

@ -1805,7 +1805,7 @@ class MikrotikControllerData:
self.data["host"][uid]["host-name"] = uid self.data["host"][uid]["host-name"] = uid
# Resolve manufacturer # Resolve manufacturer
if vals["manufacturer"] == "detect" and vals["address"] != "unknown": if vals["manufacturer"] == "detect" and vals["mac-address"] != "unknown":
try: try:
self.data["host"][uid][ self.data["host"][uid][
"manufacturer" "manufacturer"
@ -1813,6 +1813,9 @@ class MikrotikControllerData:
except: except:
self.data["host"][uid]["manufacturer"] = "" self.data["host"][uid]["manufacturer"] = ""
if vals["manufacturer"] == "detect":
self.data["host"][uid]["manufacturer"] = ""
# --------------------------- # ---------------------------
# process_accounting # process_accounting
# --------------------------- # ---------------------------