CLOUDSTACK-8993: DHCP fails with "no address available" when an IP is reused

Repopulate /etc/dhcphosts.txt to remove old entries with the same IP address.
This commit is contained in:
Joakim Sernbrant 2015-10-26 15:15:19 +01:00
parent 88dd3009d8
commit f413f69985

View File

@ -37,6 +37,8 @@ class CsDhcp(CsDataBag):
self.cloud = CsFile(DHCP_HOSTS)
self.conf = CsFile(CLOUD_CONF)
self.cloud.repopulate()
for item in self.dbag:
if item == "id":
continue