summaryrefslogtreecommitdiff
path: root/data/templates/https/vyos-http-api.service.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 19:42:07 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 19:42:07 +0200
commit77bbf766e8023e73df1c3c1360f607a4d94727fd (patch)
tree20e8967f49d64dbcd594e9db2ebd69349f29f36d /data/templates/https/vyos-http-api.service.tmpl
parentde407ab8971d544b4a662bdeabd76c50c29b02d9 (diff)
downloadvyos-1x-77bbf766e8023e73df1c3c1360f607a4d94727fd.tar.gz
vyos-1x-77bbf766e8023e73df1c3c1360f607a4d94727fd.zip
https: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/https/vyos-http-api.service.tmpl')
-rw-r--r--data/templates/https/vyos-http-api.service.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/https/vyos-http-api.service.tmpl b/data/templates/https/vyos-http-api.service.tmpl
index 15bd80d65..fb424e06c 100644
--- a/data/templates/https/vyos-http-api.service.tmpl
+++ b/data/templates/https/vyos-http-api.service.tmpl
@@ -1,11 +1,11 @@
-{% 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]
Description=VyOS HTTP API service
After=vyos-router.service
Requires=vyos-router.service
[Service]
-ExecStart={{vrf_command}}/usr/libexec/vyos/services/vyos-http-api-server
+ExecStart={{ vrf_command }}/usr/libexec/vyos/services/vyos-http-api-server
Type=idle
SyslogIdentifier=vyos-http-api