This seems to solve a race condition where some hostnames where not
properly passed to unbound - probably if there were too many DHCP
updates in too short time.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
for event in i.event_gen():
# Nothing to do
if event is None:
+ # Wait a moment before we start the next iteration
+ time.sleep(5)
+
break
# Decode the event
# Reset
update_hosts = update_leases = False
- # Wait a moment before we start the next iteration
- time.sleep(5)
-
log.info("Unbound DHCP Leases Bridge terminated")
def update_dhcp_leases(self):