summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-12 23:33:07 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2024-02-13 00:04:53 +0100
commit04bf9ee39f8243207ec777d6a5aeec78e3c9d66f (patch)
tree4a75807bcc8421fac9c45c59e82f45213d492ee3 /python
parent19df28989d72f8006e1defd241ec5cc34660bbec (diff)
downloadvyos-1x-04bf9ee39f8243207ec777d6a5aeec78e3c9d66f.tar.gz
vyos-1x-04bf9ee39f8243207ec777d6a5aeec78e3c9d66f.zip
dhcpv6-server: T5993: Add subnet `interface` node, link subnet to locally connected interfaces
Prior dhcpd behaviour implicitly handled requests for locally connected subnets. Kea requires an explicit link between subnets and an interface.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/kea.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/kea.py b/python/vyos/kea.py
index 720bebec3..7365c1f02 100644
--- a/python/vyos/kea.py
+++ b/python/vyos/kea.py
@@ -212,6 +212,9 @@ def kea6_parse_subnet(subnet, config):
if 'option' in config:
out['option-data'] = kea6_parse_options(config['option'])
+ if 'interface' in config:
+ out['interface'] = config['interface']
+
if 'range' in config:
pools = []
for num, range_config in config['range'].items():