summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJan-Philipp Benecke <jpb@cleverreach.com>2020-12-17 12:17:28 +0100
committerJan-Philipp Benecke <jpb@cleverreach.com>2020-12-17 12:17:28 +0100
commitc1135630283fa22b56af69be9acd1556ecf2be82 (patch)
tree7b2d60d785709f3185549b120839811e829ba729 /data/templates
parenta6b35825a78b5fe8c3a91bc4cf6abf0f50a08738 (diff)
downloadvyos-1x-c1135630283fa22b56af69be9acd1556ecf2be82.tar.gz
vyos-1x-c1135630283fa22b56af69be9acd1556ecf2be82.zip
flow-accounting: T3132: enable egress traffic accounting
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/netflow/uacctd.conf.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/netflow/uacctd.conf.tmpl b/data/templates/netflow/uacctd.conf.tmpl
index fdf96e7c3..1938901d2 100644
--- a/data/templates/netflow/uacctd.conf.tmpl
+++ b/data/templates/netflow/uacctd.conf.tmpl
@@ -5,7 +5,11 @@ pidfile: /var/run/uacctd.pid
uacctd_group: 2
uacctd_nl_size: 2097152
snaplen: {{ snaplen }}
+{% if templatecfg['enable-egress'] != none %}
+aggregate: in_iface,out_iface,src_mac,dst_mac,vlan,src_host,dst_host,src_port,dst_port,proto,tos,flows
+{% else %}
aggregate: in_iface,src_mac,dst_mac,vlan,src_host,dst_host,src_port,dst_port,proto,tos,flows
+{% endif %}
plugin_pipe_size: {{ templatecfg['plugin_pipe_size'] }}
plugin_buffer_size: {{ templatecfg['plugin_buffer_size'] }}
{% if templatecfg['syslog-facility'] != none %}