summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyrylo Yatsenko <hedrok@gmail.com>2026-03-07 21:58:39 +0200
committerKyrylo Yatsenko <hedrok@gmail.com>2026-03-07 22:02:07 +0200
commit9e2d972d5d4940efa28be38a1b55b3d6e4b4be7a (patch)
treefde749baab33e70bd70625f3482e672e8baeee2b /src
parent2a90b963e1f1f399f2173ba1b4f4a289960c8f7d (diff)
downloadvyos-1x-9e2d972d5d4940efa28be38a1b55b3d6e4b4be7a.tar.gz
vyos-1x-9e2d972d5d4940efa28be38a1b55b3d6e4b4be7a.zip
T8186: netflow: disable IPv6 for protocol version5
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system_flow-accounting.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/system_flow-accounting.py b/src/conf_mode/system_flow-accounting.py
index b23ee77fd..3318ad465 100755
--- a/src/conf_mode/system_flow-accounting.py
+++ b/src/conf_mode/system_flow-accounting.py
@@ -183,11 +183,12 @@ def apply(flow_config):
if 'enable_egress' in flow_config:
egress_interfaces = ingress_interfaces
+ enable_ipv6 = flow_config['netflow']['version'] != '5'
if need_reload:
- ipt_netflow.start(ingress_interfaces, egress_interfaces)
+ ipt_netflow.start(ingress_interfaces, egress_interfaces, ipv6=enable_ipv6)
else:
ipt_netflow.set_watched_iptables_interfaces(
- ingress_interfaces, egress_interfaces
+ ingress_interfaces, egress_interfaces, ipv6=enable_ipv6
)