summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-23 22:03:51 +0100
committerGitHub <noreply@github.com>2024-03-23 22:03:51 +0100
commitb24adfb60a4207da471cf8efe19f56fc3c0a9b45 (patch)
tree981d169ac1785d6ab01585e778c1d504eaf967d7
parent6e4cd53008429289773189432d0821c76f1ca3fd (diff)
parente58af658d31ceb21ffa073badaeeecb099ce5d75 (diff)
downloadvyos-1x-b24adfb60a4207da471cf8efe19f56fc3c0a9b45.tar.gz
vyos-1x-b24adfb60a4207da471cf8efe19f56fc3c0a9b45.zip
Merge pull request #3162 from HollyGurza/T5164-sagitta
dhcp: T5164: op cmd: "show dhcp server leases state" with available o…
-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