diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:52:17 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-13 22:52:17 +0200 |
commit | d93daa4e6d219d61a102532684ab33717fd2eedb (patch) | |
tree | bd36ecc819052187b521709eb7109ccc4a46a252 /data/templates/pmacct/override.conf.tmpl | |
parent | 681b9448ba24a68f436655aad99f690bfdac6339 (diff) | |
download | vyos-1x-d93daa4e6d219d61a102532684ab33717fd2eedb.tar.gz vyos-1x-d93daa4e6d219d61a102532684ab33717fd2eedb.zip |
netflow: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/pmacct/override.conf.tmpl')
-rw-r--r-- | data/templates/pmacct/override.conf.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/pmacct/override.conf.tmpl b/data/templates/pmacct/override.conf.tmpl index 216927666..213569ddc 100644 --- a/data/templates/pmacct/override.conf.tmpl +++ b/data/templates/pmacct/override.conf.tmpl @@ -1,4 +1,4 @@ -{% 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] After= After=vyos-router.service @@ -8,7 +8,7 @@ ConditionPathExists=/run/pmacct/uacctd.conf [Service] EnvironmentFile= ExecStart= -ExecStart={{vrf_command}}/usr/sbin/uacctd -f /run/pmacct/uacctd.conf +ExecStart={{ vrf_command }}/usr/sbin/uacctd -f /run/pmacct/uacctd.conf WorkingDirectory= WorkingDirectory=/run/pmacct PIDFile= |