mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
88dd3009d8
commit
f413f69985
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user