summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-03-12 15:53:21 +0000
committerGitHub <noreply@github.com>2026-03-12 15:53:21 +0000
commitaf8e4b83017e0c1b28cd1e447f760fdc32e4f2ff (patch)
tree82aa586e353a65e47ca64bc683cce19cb5345ce5 /smoketest/scripts/cli
parent2e2cdfb15f91bc71fefb718a9bdb64b66a0b0dd0 (diff)
parent9e2d972d5d4940efa28be38a1b55b3d6e4b4be7a (diff)
downloadvyos-1x-af8e4b83017e0c1b28cd1e447f760fdc32e4f2ff.tar.gz
vyos-1x-af8e4b83017e0c1b28cd1e447f760fdc32e4f2ff.zip
Merge pull request #5035 from hedrok/T8186-fix-netflow-v5
T8186: netflow: disable IPv6 for netflow protocol 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())