diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-26 00:10:07 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-26 00:10:41 +0100 |
commit | acf90165456e87cff19f45053261667803255c8e (patch) | |
tree | 359da3e516c646cdf93bac1fb214b53c376649b2 /data/templates/https/vyos-http-api.service.tmpl | |
parent | 503123728b5c08b42746b25bf84633d6a4729227 (diff) | |
download | vyos-1x-acf90165456e87cff19f45053261667803255c8e.tar.gz vyos-1x-acf90165456e87cff19f45053261667803255c8e.zip |
http: api: T4055: add VRF support
(cherry picked from commit 4aaf0ba69139d84f89e5c3feee6edd845af8d1e5)
Diffstat (limited to 'data/templates/https/vyos-http-api.service.tmpl')
-rw-r--r-- | data/templates/https/vyos-http-api.service.tmpl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/data/templates/https/vyos-http-api.service.tmpl b/data/templates/https/vyos-http-api.service.tmpl new file mode 100644 index 000000000..15bd80d65 --- /dev/null +++ b/data/templates/https/vyos-http-api.service.tmpl @@ -0,0 +1,22 @@ +{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is 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 +Type=idle + +SyslogIdentifier=vyos-http-api +SyslogFacility=daemon + +Restart=on-failure + +# Does't work but leave it here +User=root +Group=vyattacfg + +[Install] +WantedBy=vyos.target + |