From 2a90b963e1f1f399f2173ba1b4f4a289960c8f7d Mon Sep 17 00:00:00 2001 From: Kyrylo Yatsenko Date: Sat, 7 Mar 2026 08:50:05 +0200 Subject: T8186: netflow: add test for ver5 + IPv6 ipt_NETFLOW protocol version 5 is incompatible with IPv6. Add simple test for version 5. --- smoketest/scripts/cli/test_system_flow-accounting.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'smoketest/scripts/cli') diff --git a/smoketest/scripts/cli/test_system_flow-accounting.py b/smoketest/scripts/cli/test_system_flow-accounting.py index 7de865b72..a5ab9b1fd 100755 --- a/smoketest/scripts/cli/test_system_flow-accounting.py +++ b/smoketest/scripts/cli/test_system_flow-accounting.py @@ -280,5 +280,19 @@ class TestSystemFlowAccounting(VyOSUnitTestSHIM.TestCase): ) + def test_netflow_v5(self): + version = '5' + netflow_server = '203.0.113.27' + + for interface in Section.interfaces('ethernet'): + self.cli_set(base_path + ['netflow', 'interface', interface]) + + self.cli_set(base_path + ['netflow', 'version', version]) + self.cli_set(base_path + ['netflow', 'server', netflow_server]) + + # commit changes + self.cli_commit() + + if __name__ == '__main__': unittest.main(verbosity=2, failfast=VyOSUnitTestSHIM.TestCase.debug_on()) -- cgit v1.2.3