summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorKyrylo Yatsenko <hedrok@gmail.com>2026-03-07 08:50:05 +0200
committerKyrylo Yatsenko <hedrok@gmail.com>2026-03-07 22:01:20 +0200
commit2a90b963e1f1f399f2173ba1b4f4a289960c8f7d (patch)
tree726d0aee8d6f02a6208694104ce763da1d5f50e3 /smoketest/scripts/cli
parent20e005fc88c2a5182b0b711245272724a0e9d853 (diff)
downloadvyos-1x-2a90b963e1f1f399f2173ba1b4f4a289960c8f7d.tar.gz
vyos-1x-2a90b963e1f1f399f2173ba1b4f4a289960c8f7d.zip
T8186: netflow: add test for ver5 + IPv6
ipt_NETFLOW protocol version 5 is incompatible with IPv6. Add simple test for version 5.
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_system_flow-accounting.py14
1 files changed, 14 insertions, 0 deletions
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())