mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
dhcpd watcher (unbound) cleanup mac address, remove ;
This commit is contained in:
parent
e7137c1ec3
commit
1474f77ddc
@ -71,7 +71,7 @@ class DHCPDLease(object):
|
||||
except ValueError:
|
||||
field_value = None
|
||||
elif field_name == 'hardware' and len(parts) >= 3:
|
||||
field_value = {'hardware-type': parts[1], 'mac-address': parts[2]}
|
||||
field_value = {'hardware-type': parts[1], 'mac-address': parts[2].split(';')[0]}
|
||||
elif field_name in('uid', 'client-hostname') and len(parts) >= 2 and parts[1].find('"') > -1:
|
||||
field_value = parts[1].split('"')[1]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user