From b05201724022d1a50a51d150abb4f444b2e1555e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 15 May 2021 17:16:31 +0200 Subject: dhcpv6-server: T3549: fix incorrect syntax for global name-server definition dhcp6.name-servers is a comma-delimited, multi-value list of name-servers that should only appear once in the dhcpdv6.conf file. --- data/templates/dhcp-server/dhcpdv6.conf.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'data/templates') diff --git a/data/templates/dhcp-server/dhcpdv6.conf.tmpl b/data/templates/dhcp-server/dhcpdv6.conf.tmpl index 25e5fa592..8d653ff72 100644 --- a/data/templates/dhcp-server/dhcpdv6.conf.tmpl +++ b/data/templates/dhcp-server/dhcpdv6.conf.tmpl @@ -9,9 +9,7 @@ option dhcp6.preference {{ preference }}; {% endif %} {% if global_parameters is defined and global_parameters.name_server is defined and global_parameters.name_server is not none %} -{% for nameserver in global_parameters.name_server %} -option dhcp6.name-servers {{ nameserver }}; -{% endfor %} +option dhcp6.name-servers {{ global_parameters.name_server | join(', ') }}; {% endif %} # Shared network configration(s) -- cgit v1.2.3