summaryrefslogtreecommitdiff
path: root/src/op_mode/dhcp.py
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2023-12-12 22:44:33 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2023-12-12 22:44:33 +0100
commit56a8eaeda7e8b526c8a52e5f955701e75d5bf893 (patch)
tree9f3ee3dec572cd741452fe800a669e68c72b292a /src/op_mode/dhcp.py
parent7d50be0318db808b7f66775603569f565c28cced (diff)
downloadvyos-1x-56a8eaeda7e8b526c8a52e5f955701e75d5bf893.tar.gz
vyos-1x-56a8eaeda7e8b526c8a52e5f955701e75d5bf893.zip
dhcp: T3316: Fix dhcp op-mode state 'all' matching
Diffstat (limited to 'src/op_mode/dhcp.py')
-rwxr-xr-xsrc/op_mode/dhcp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py
index 84158eeb1..a9271ea79 100755
--- a/src/op_mode/dhcp.py
+++ b/src/op_mode/dhcp.py
@@ -123,7 +123,7 @@ def _get_raw_server_leases(family='inet', pool=None, sorted=None, state=[], orig
# Do not add old leases
if data_lease['remaining'] != '' and data_lease['pool'] in pool and data_lease['state'] != 'free':
- if not state or data_lease['state'] in state:
+ if not state or state == 'all' or data_lease['state'] in state:
data.append(data_lease)
# deduplicate