summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2026-05-28 23:55:23 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2026-05-29 16:25:03 -0500
commit8fa34f5882ec907db5e8446cfa92e82098236a00 (patch)
tree121a36f9a5d312bffb56eb7e6d34a6aed4f1ea29 /src
parent1bdf8747c28b4278f6bef9b5d54378795f83b57d (diff)
downloadvyos-1x-8fa34f5882ec907db5e8446cfa92e82098236a00.tar.gz
vyos-1x-8fa34f5882ec907db5e8446cfa92e82098236a00.zip
dhcp: T8941: Add missing `hostname` as valid sort key
Add `hostname` as a valid sort key for both DHCPv4 and DHCPv6 leases and static mappings.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/dhcp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py
index 9cb5a84ae..8e0130c17 100755
--- a/src/op_mode/dhcp.py
+++ b/src/op_mode/dhcp.py
@@ -64,6 +64,7 @@ sort_valid_inet = [
sort_valid_inet6 = [
'end',
'duid',
+ 'hostname',
'ip',
'last_communication',
'pool',
@@ -71,7 +72,7 @@ sort_valid_inet6 = [
'state',
'type',
]
-mapping_sort_valid = ['mac', 'ip', 'pool', 'duid']
+mapping_sort_valid = ['mac', 'hostname', 'ip', 'pool', 'duid']
stale_warn_msg = 'DHCP server is configured but not started. Data may be stale.'