summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server/dhcpdv6.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-15 17:16:31 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-15 17:17:39 +0200
commit9099636b9b16a2cc9b387adcdd24a1d799343944 (patch)
tree3d9c960a0b64c127514b94b0d04cf0435c018e5b /data/templates/dhcp-server/dhcpdv6.conf.tmpl
parent7eedd045534c1375e3a02752412d1652d10b0fa1 (diff)
downloadvyos-1x-9099636b9b16a2cc9b387adcdd24a1d799343944.tar.gz
vyos-1x-9099636b9b16a2cc9b387adcdd24a1d799343944.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. (cherry picked from commit b05201724022d1a50a51d150abb4f444b2e1555e)
Diffstat (limited to 'data/templates/dhcp-server/dhcpdv6.conf.tmpl')
-rw-r--r--data/templates/dhcp-server/dhcpdv6.conf.tmpl4
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)