Compatibilité 2.8 #2
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 = {}
|
host_mac_ip = {}
|
||||||
|
|
||||||
for hmi in api_client.list("dhcp/hostmacip/"):
|
for hmi in api_client.list("dhcp/hostmacip/"):
|
||||||
|
if 'ipv4' in hmi:
|
||||||
if hmi['extension'] not in host_mac_ip.keys():
|
if hmi['extension'] not in host_mac_ip.keys():
|
||||||
host_mac_ip[hmi['extension']] = []
|
host_mac_ip[hmi['extension']] = []
|
||||||
host_mac_ip[hmi['extension']].append((hmi['hostname'],
|
host_mac_ip[hmi['extension']].append((hmi['hostname'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue