diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-15 17:16:31 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-15 17:16:31 +0200 |
commit | b05201724022d1a50a51d150abb4f444b2e1555e (patch) | |
tree | 0e79ea24b4a0cf84b4876dffc6b788fb4d6781c7 /data/templates | |
parent | edcdea890b2eeb03d24b06fdd8ac38133e631c05 (diff) | |
download | vyos-1x-b05201724022d1a50a51d150abb4f444b2e1555e.tar.gz vyos-1x-b05201724022d1a50a51d150abb4f444b2e1555e.zip |
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.
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dhcp-server/dhcpdv6.conf.tmpl | 4 |
1 files changed, 1 insertions, 3 deletions
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) |