diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-30 17:52:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-30 17:52:12 +0200 |
commit | 7267229981f1b933b60decd687d72b726453baf6 (patch) | |
tree | fec4383f36a984b14539ee2a521844b924a77f7d /data/templates | |
parent | 7fa7b5a6fce7ffd7862c9ba07c8b7a25ce056045 (diff) | |
download | vyos-1x-7267229981f1b933b60decd687d72b726453baf6.tar.gz vyos-1x-7267229981f1b933b60decd687d72b726453baf6.zip |
dhcpv6-server: T2406: move FQDN quoting to Jinja2 template
... no need to reinvent the wheel in our Python code.
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/dhcpv6-server/dhcpdv6.conf.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/dhcpv6-server/dhcpdv6.conf.tmpl b/data/templates/dhcpv6-server/dhcpdv6.conf.tmpl index 80d620fcf..d6b0ae935 100644 --- a/data/templates/dhcpv6-server/dhcpdv6.conf.tmpl +++ b/data/templates/dhcpv6-server/dhcpdv6.conf.tmpl @@ -21,7 +21,7 @@ shared-network {{ network.name }} { range6 {{ range.start }} {{ range.stop }}; {%- endfor %} {%- if subnet.domain_search %} - option dhcp6.domain-search {{ subnet.domain_search | join(', ') }}; + option dhcp6.domain-search "{{ subnet.domain_search | join('", "') }}"; {%- endif %} {%- if subnet.lease_def %} default-lease-time {{ subnet.lease_def }}; @@ -51,7 +51,7 @@ shared-network {{ network.name }} { option dhcp6.sip-servers-addresses {{ subnet.sip_address | join(', ') }}; {%- endif %} {%- if subnet.sip_hostname %} - option dhcp6.sip-servers-names {{ subnet.sip_hostname | join(', ') }}; + option dhcp6.sip-servers-names "{{ subnet.sip_hostname | join('", "') }}"; {%- endif %} {%- if subnet.sntp_server %} option dhcp6.sntp-servers {{ subnet.sntp_server | join(', ') }}; |