Exception when client not in leases

Client can be dropped from leases list from where the status is
retreived before it is dropped from the ip neigh list.
The client needs a default status.
This commit is contained in:
Per Sandstrom 2015-08-06 09:19:23 +02:00
parent 52ec4ac1d8
commit 65cc0954c8

View File

@ -157,7 +157,8 @@ class AsusWrtDeviceScanner(object):
devices[match.group('ip')] = {
'ip': match.group('ip'),
'mac': match.group('mac').upper(),
'host': match.group('host')
'host': match.group('host'),
'status': ''
}
for neighbor in neighbors: