skip availability check when interface or address is empty #199

This commit is contained in:
Tomaae 2022-05-18 22:04:37 +02:00
parent 0da0f876c3
commit 817ecaa8c1
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -532,8 +532,8 @@ class MikrotikControllerData:
# Check host availability
if (
self.data["host"][uid]["source"] not in ["capsman", "wireless"]
and self.data["host"][uid]["address"] != "unknown"
and self.data["host"][uid]["interface"] != "unknown"
and self.data["host"][uid]["address"] not in ["unknown", ""]
and self.data["host"][uid]["interface"] not in ["unknown", ""]
):
tmp_interface = self.data["host"][uid]["interface"]
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":