Compatibilité 2.8
This commit is contained in:
parent
0bf05dbad3
commit
48feb825b8
1 changed files with 6 additions and 5 deletions
1
main.py
1
main.py
|
@ -29,6 +29,7 @@ def regen_dhcp(api_client):
|
|||
host_mac_ip = {}
|
||||
|
||||
for hmi in api_client.list("dhcp/hostmacip/"):
|
||||
if 'ipv4' in hmi:
|
||||
if hmi['extension'] not in host_mac_ip.keys():
|
||||
host_mac_ip[hmi['extension']] = []
|
||||
host_mac_ip[hmi['extension']].append((hmi['hostname'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue