Commit 9baece2c authored by chirac's avatar chirac
Browse files

Merge branch 'compa_2.8' into 'master'

Compatibilité 2.8

See merge request !2
parents 0bf05dba 48feb825
...@@ -29,6 +29,7 @@ def regen_dhcp(api_client): ...@@ -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'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment