From 9e2d972d5d4940efa28be38a1b55b3d6e4b4be7a Mon Sep 17 00:00:00 2001 From: Kyrylo Yatsenko Date: Sat, 7 Mar 2026 21:58:39 +0200 Subject: T8186: netflow: disable IPv6 for protocol version5 --- src/conf_mode/system_flow-accounting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 ) -- cgit v1.2.3