diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-04 21:22:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-04 21:36:51 +0200 |
commit | ff7dd3b9de82347cc77612cb79dc159661320d49 (patch) | |
tree | b9b95d4388d9bcea9e6e5b37cf98776fac8e94c5 /data/templates | |
parent | c8c42db4cc644cdec43d4d1cc8dd2905bad42df6 (diff) | |
download | vyos-1x-ff7dd3b9de82347cc77612cb79dc159661320d49.tar.gz vyos-1x-ff7dd3b9de82347cc77612cb79dc159661320d49.zip |
ssh: T2682: simplify VRF binding
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ssh/override.conf.tmpl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/data/templates/ssh/override.conf.tmpl b/data/templates/ssh/override.conf.tmpl index 1013d4b48..d2d500f21 100644 --- a/data/templates/ssh/override.conf.tmpl +++ b/data/templates/ssh/override.conf.tmpl @@ -1,8 +1,5 @@ +{% set vrf_command = '/sbin/ip vrf exec ' + vrf + ' ' if vrf is defined else '' %} [Service] ExecStart= -{% if vrf %} -ExecStart=/sbin/ip vrf exec {{ vrf }} /usr/sbin/sshd -D $SSHD_OPTS -{% else %} -ExecStart=/usr/sbin/sshd -D $SSHD_OPTS -{% endif %} +ExecStart={{vrf_command}}/usr/sbin/sshd -D $SSHD_OPTS |