summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-11 15:34:10 +0200
committerNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-11 15:34:10 +0200
commit793c6a1ee7f9ae0bd335cd04ee5e153219bbc5e0 (patch)
treeddd93124c7b1153e7f3844fe24ae9515a10d22a6 /python
parent0a0593d1c6f2db2661a4b99dc634da1ceaef5c23 (diff)
downloadvyos-1x-793c6a1ee7f9ae0bd335cd04ee5e153219bbc5e0.tar.gz
vyos-1x-793c6a1ee7f9ae0bd335cd04ee5e153219bbc5e0.zip
op-mode: T5992: show dhcpv6 leases with (mostly) the same fields and order
Diffstat (limited to 'python')
-rw-r--r--python/vyos/kea.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index d3cf671ec..c7ae94b14 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -624,7 +624,7 @@ def kea_get_server_leases(config, inet, vrf_name, pools=[], state=[], origin=Non
data_lease['origin'] = 'local' # TODO: Determine remote in HA
# remove trailing dot in 'hostname' to ensure consistency for `vyos-hostsd-client`
data_lease['hostname'] = lease.get('hostname', '').rstrip('.') or '-'
- data_lease['mac'] = lease['hw-address']
+ data_lease['mac'] = lease.get('hw-address', '-')
if inet == '4':
data_lease['start'] = lease['start_time'].timestamp()