summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-17 18:02:49 +0100
committerGitHub <noreply@github.com>2023-03-17 18:02:49 +0100
commit92c3ce9fbc266bbbd89a40fe0c98d6db1a4f4c2c (patch)
tree0a37d9f887ac862cbd6f8122b88e8f4eafa1f582 /smoketest/scripts
parentda42b37983e75dc4587160036be9eb71df4e4989 (diff)
parent57c06dcd78f9b711c4fb46e6657b0a496059a685 (diff)
downloadvyos-1x-92c3ce9fbc266bbbd89a40fe0c98d6db1a4f4c2c.tar.gz
vyos-1x-92c3ce9fbc266bbbd89a40fe0c98d6db1a4f4c2c.zip
Merge pull request #1897 from sever-sever/T5086
T5086: Add sFlow drop-monitor-limit option
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_system_sflow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_system_sflow.py b/smoketest/scripts/cli/test_system_sflow.py
index b593c21e6..f50052d31 100755
--- a/smoketest/scripts/cli/test_system_sflow.py
+++ b/smoketest/scripts/cli/test_system_sflow.py
@@ -57,6 +57,7 @@ class TestSystemFlowAccounting(VyOSUnitTestSHIM.TestCase):
sampling_rate = '128'
server = '192.0.2.254'
port = '8192'
+ mon_limit = '50'
self.cli_set(
['interfaces', 'dummy', 'dum0', 'address', f'{agent_address}/24'])
@@ -72,6 +73,7 @@ class TestSystemFlowAccounting(VyOSUnitTestSHIM.TestCase):
self.cli_set(base_path + ['polling', polling])
self.cli_set(base_path + ['sampling-rate', sampling_rate])
self.cli_set(base_path + ['server', server, 'port', port])
+ self.cli_set(base_path + ['drop-monitor-limit', mon_limit])
# commit changes
self.cli_commit()
@@ -84,6 +86,7 @@ class TestSystemFlowAccounting(VyOSUnitTestSHIM.TestCase):
self.assertIn(f'agentIP={agent_address}', hsflowd)
self.assertIn(f'agent={agent_interface}', hsflowd)
self.assertIn(f'collector {{ ip = {server} udpport = {port} }}', hsflowd)
+ self.assertIn(f'dropmon {{ limit={mon_limit} start=on sw=on hw=off }}', hsflowd)
for interface in Section.interfaces('ethernet'):
self.assertIn(f'pcap {{ dev={interface} }}', hsflowd)