summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2026-05-14 03:13:05 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2026-05-16 16:27:30 -0500
commit28898e4477727c5d4406c227b0d056e6dfc1ce39 (patch)
treec98c28b79eda2a3b53716a3b549a5e4b5604b2f2 /python
parent08542c03c0d1ab2c114966f6fbd4c2b7c3a45b4a (diff)
downloadvyos-1x-28898e4477727c5d4406c227b0d056e6dfc1ce39.tar.gz
vyos-1x-28898e4477727c5d4406c227b0d056e6dfc1ce39.zip
dhcpv6: T8862: Allow multiple addresses and prefixes for reservations
Add support for allowing DHCPv6 to assign reservations for multiple addresses and prefixes to a single client simultaneously.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/kea.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 068e2cf7a..436c134c8 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -385,10 +385,10 @@ def kea6_parse_subnet(subnet, config):
reservation['duid'] = host_config['duid']
if 'ipv6_address' in host_config:
- reservation['ip-addresses'] = [host_config['ipv6_address']]
+ reservation['ip-addresses'] = host_config['ipv6_address']
if 'ipv6_prefix' in host_config:
- reservation['prefixes'] = [host_config['ipv6_prefix']]
+ reservation['prefixes'] = host_config['ipv6_prefix']
if 'option' in host_config:
reservation['option-data'] = kea6_parse_options(host_config['option'])