summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:45 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-13 23:18:45 +0200
commit5b1f06336b9cc9f27788fbcd426f2fd08431e4f8 (patch)
treee221674c466505c104284782eb3ed55510c77fe3 /data
parent84abe1f9d22418d858571992cb4fbe2bb3aa34a3 (diff)
downloadvyos-1x-5b1f06336b9cc9f27788fbcd426f2fd08431e4f8.tar.gz
vyos-1x-5b1f06336b9cc9f27788fbcd426f2fd08431e4f8.zip
ntp: T2321: add VRF support
Diffstat (limited to 'data')
-rw-r--r--data/templates/ntp/override.conf.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/ntp/override.conf.tmpl b/data/templates/ntp/override.conf.tmpl
new file mode 100644
index 000000000..69a73b128
--- /dev/null
+++ b/data/templates/ntp/override.conf.tmpl
@@ -0,0 +1,8 @@
+[Service]
+ExecStart=
+{% if vrf %}
+ExecStart=/sbin/ip vrf exec {{ vrf }} /usr/lib/ntp/ntp-systemd-wrapper
+{% else %}
+ExecStart=/usr/lib/ntp/ntp-systemd-wrapper
+{% endif %}
+