summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-03-21 14:00:50 +0800
committerkhramshinr <khramshinr@gmail.com>2024-03-21 14:00:50 +0800
commite58af658d31ceb21ffa073badaeeecb099ce5d75 (patch)
treeda8090f30ed42f9458dfefcc74b249392ac028bb /src/op_mode
parentf7a005ebecdfabc0a0af75ed9ad84b44ef1d6d5b (diff)
downloadvyos-1x-e58af658d31ceb21ffa073badaeeecb099ce5d75.tar.gz
vyos-1x-e58af658d31ceb21ffa073badaeeecb099ce5d75.zip
dhcp: T5164: op cmd: "show dhcp server leases state" with available options does not show any result
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/dhcp.py3
1 files changed, 1 insertions, 2 deletions
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