From e58af658d31ceb21ffa073badaeeecb099ce5d75 Mon Sep 17 00:00:00 2001 From: khramshinr Date: Thu, 21 Mar 2024 14:00:50 +0800 Subject: dhcp: T5164: op cmd: "show dhcp server leases state" with available options does not show any result --- src/op_mode/dhcp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/op_mode') diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py index d6b8aa0b8..b1fa6b918 100755 --- a/src/op_mode/dhcp.py +++ b/src/op_mode/dhcp.py @@ -79,8 +79,7 @@ def _get_raw_server_leases(family='inet', pool=None, sorted=None, state=[], orig """ lease_file = '/config/dhcpdv6.leases' if family == 'inet6' else '/config/dhcpd.leases' data = [] - leases = IscDhcpLeases(lease_file).get() - + leases = IscDhcpLeases(lease_file).get(include_backups=True) if pool is None: pool = _get_dhcp_pools(family=family) aux = False -- cgit v1.2.3