mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02: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.cloud = CsFile(DHCP_HOSTS)
|
||||||
self.conf = CsFile(CLOUD_CONF)
|
self.conf = CsFile(CLOUD_CONF)
|
||||||
|
|
||||||
|
self.cloud.repopulate()
|
||||||
|
|
||||||
for item in self.dbag:
|
for item in self.dbag:
|
||||||
if item == "id":
|
if item == "id":
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user