diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2024-01-13 00:29:49 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2024-01-13 02:37:30 +0100 |
commit | 2d4db25386fcefd301868a4daa39d5578cbac779 (patch) | |
tree | ddb0abcacf25ae3abbf85f05fddd4695c3378fcd | |
parent | 45d472c8782f927980044eaba0d49421e91fc0c8 (diff) | |
download | vyos-1x-2d4db25386fcefd301868a4daa39d5578cbac779.tar.gz vyos-1x-2d4db25386fcefd301868a4daa39d5578cbac779.zip |
dhcpv6: T3316: Add `listen-interface` as supported by Kea
-rw-r--r-- | data/templates/dhcp-server/kea-dhcp6.conf.j2 | 4 | ||||
-rw-r--r-- | interface-definitions/service_dhcpv6-server.xml.in | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp6.conf.j2 b/data/templates/dhcp-server/kea-dhcp6.conf.j2 index 3ce4e6370..3ab21551b 100644 --- a/data/templates/dhcp-server/kea-dhcp6.conf.j2 +++ b/data/templates/dhcp-server/kea-dhcp6.conf.j2 @@ -1,7 +1,11 @@ { "Dhcp6": { "interfaces-config": { +{% if listen_interface is vyos_defined %} + "interfaces": {{ listen_interface | tojson }}, +{% else %} "interfaces": [ "*" ], +{% endif %} "service-sockets-max-retries": 5, "service-sockets-retry-wait-time": 5000 }, diff --git a/interface-definitions/service_dhcpv6-server.xml.in b/interface-definitions/service_dhcpv6-server.xml.in index 4c1a28016..07cbfc85d 100644 --- a/interface-definitions/service_dhcpv6-server.xml.in +++ b/interface-definitions/service_dhcpv6-server.xml.in @@ -9,6 +9,7 @@ </properties> <children> #include <include/generic-disable-node.xml.i> + #include <include/listen-interface-multi-broadcast.xml.i> <node name="global-parameters"> <properties> <help>Additional global parameters for DHCPv6 server</help> |