summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-09-15 10:12:28 +0100
committerGitHub <noreply@github.com>2025-09-15 10:12:28 +0100
commit238a9006cc78022ba5e95258c1033ccf8abfb1af (patch)
tree21f504672a05f4bb1b8d2812a09b8a63b8570f7d /python
parentf406d48b527589200611dcbb5a99044489b1e9c5 (diff)
parent793c6a1ee7f9ae0bd335cd04ee5e153219bbc5e0 (diff)
downloadvyos-1x-238a9006cc78022ba5e95258c1033ccf8abfb1af.tar.gz
vyos-1x-238a9006cc78022ba5e95258c1033ccf8abfb1af.zip
Merge pull request #4289 from nvandamme/current
op-mode: T5992: show dhcpv6 leases with (mostly) the same fields as dhcp leases
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 a47371e88..c7ae94b14 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -624,9 +624,9 @@ 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.get('hw-address', '-')
if inet == '4':
- data_lease['mac'] = lease['hw-address']
data_lease['start'] = lease['start_time'].timestamp()
if inet == '6':