summaryrefslogtreecommitdiff
path: root/data/templates/pmacct/override.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-03-01 19:09:12 +0100
committerChristian Poessinger <christian@poessinger.com>2022-03-01 19:10:15 +0100
commit42c011224e5aef3c27f9de6b5a74e594a404131e (patch)
treed80f1be872db781b18992851fe842a9b488fb4de /data/templates/pmacct/override.conf.tmpl
parent258737a06509f2ff3be8bf21a8ce313ddc2ee191 (diff)
downloadvyos-1x-42c011224e5aef3c27f9de6b5a74e594a404131e.tar.gz
vyos-1x-42c011224e5aef3c27f9de6b5a74e594a404131e.zip
flow-accounting: T4277: support sending flow-data via VRF interface
It should be possible to send the gathered data via a VRF bound interface to the collector. This is somehow related to T3981 but it's the opposite side of the netflow process. set system flow-accounting vrf <name>
Diffstat (limited to 'data/templates/pmacct/override.conf.tmpl')
-rw-r--r--data/templates/pmacct/override.conf.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/pmacct/override.conf.tmpl b/data/templates/pmacct/override.conf.tmpl
new file mode 100644
index 000000000..216927666
--- /dev/null
+++ b/data/templates/pmacct/override.conf.tmpl
@@ -0,0 +1,17 @@
+{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is defined else '' %}
+[Unit]
+After=
+After=vyos-router.service
+ConditionPathExists=
+ConditionPathExists=/run/pmacct/uacctd.conf
+
+[Service]
+EnvironmentFile=
+ExecStart=
+ExecStart={{vrf_command}}/usr/sbin/uacctd -f /run/pmacct/uacctd.conf
+WorkingDirectory=
+WorkingDirectory=/run/pmacct
+PIDFile=
+PIDFile=/run/pmacct/uacctd.pid
+Restart=always
+RestartSec=10