summaryrefslogtreecommitdiff
path: root/data/templates/ssh/override.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-11 06:05:12 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-11 06:05:12 +0200
commit5f164e59aac8ce7b8eba50d3906da87a3bb7a9da (patch)
tree4c47fab2df315478427d12e334b9852a3dedcdf0 /data/templates/ssh/override.conf.tmpl
parent679415a515d126e901703ea1288f7976ee675ab3 (diff)
downloadvyos-1x-5f164e59aac8ce7b8eba50d3906da87a3bb7a9da.tar.gz
vyos-1x-5f164e59aac8ce7b8eba50d3906da87a3bb7a9da.zip
ssh: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/ssh/override.conf.tmpl')
-rw-r--r--data/templates/ssh/override.conf.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ssh/override.conf.tmpl b/data/templates/ssh/override.conf.tmpl
index 5f8f35e89..e4d6f51cb 100644
--- a/data/templates/ssh/override.conf.tmpl
+++ b/data/templates/ssh/override.conf.tmpl
@@ -1,12 +1,12 @@
-{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is defined else '' %}
+{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
StartLimitIntervalSec=0
After=vyos-router.service
-ConditionPathExists={{config_file}}
+ConditionPathExists={{ config_file }}
[Service]
ExecStart=
-ExecStart={{vrf_command}}/usr/sbin/sshd -f {{config_file}} -D $SSHD_OPTS
+ExecStart={{ vrf_command }}/usr/sbin/sshd -f {{ config_file }} -D $SSHD_OPTS
Restart=always
RestartPreventExitStatus=
RestartSec=10