mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
unbound-dhcp-leases-bridge: Don't export expired leases to Unbound
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
74849f68c9
commit
17a9ad2f52
@@ -276,7 +276,7 @@ class UnboundDHCPLeasesBridge(object):
|
|||||||
if lease.has_expired():
|
if lease.has_expired():
|
||||||
log.debug(" Expired")
|
log.debug(" Expired")
|
||||||
|
|
||||||
self.unbound.update_dhcp_leases(self.leases)
|
self.unbound.update_dhcp_leases([l for l in self.leases if not l.has_expired()])
|
||||||
|
|
||||||
def _add_lease(self, lease):
|
def _add_lease(self, lease):
|
||||||
# Skip leases without an FQDN
|
# Skip leases without an FQDN
|
||||||
|
|||||||
Reference in New Issue
Block a user