summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-07-21 09:34:06 +0000
committersever-sever <v.gletenko@vyos.io>2020-07-21 09:34:06 +0000
commitbd8caee1bc8b7121b8be18cde5d678c6b8966e03 (patch)
tree26dc4b9dbb47e2003b442d852d9c514172654b90
parenta57cdd56aa50e8d33d98e03e068e2447890abe0e (diff)
downloadvyos-1x-bd8caee1bc8b7121b8be18cde5d678c6b8966e03.tar.gz
vyos-1x-bd8caee1bc8b7121b8be18cde5d678c6b8966e03.zip
ntp: T2718: Change template for correct server names
-rw-r--r--data/templates/ntp/ntp.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ntp/ntp.conf.tmpl b/data/templates/ntp/ntp.conf.tmpl
index 1c51929fd..6ef0c0f2c 100644
--- a/data/templates/ntp/ntp.conf.tmpl
+++ b/data/templates/ntp/ntp.conf.tmpl
@@ -19,7 +19,7 @@ restrict -6 ::1
{% set options = options + 'noselect ' if server[srv].noselect is defined else '' %}
{% set options = options + 'preempt ' if server[srv].preempt is defined else '' %}
{% set options = options + 'prefer ' if server[srv].prefer is defined else '' %}
-server {{ srv }} iburst {{ options }}
+server {{ srv | replace('_', '-') }} iburst {{ options }}
{% endfor %}
{% endif %}