summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_system_flow-accounting.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-25 23:27:42 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-25 23:27:42 +0100
commit25eb2a82b29d02a332551975456743b3f791a6eb (patch)
tree9204740994ea569f0d500e131735050b7575c78a /smoketest/scripts/cli/test_system_flow-accounting.py
parent2b891ab8df43aadccc56c14183607e90d0f6f381 (diff)
parent344c2776bd6e157d33ea81f548d1eacde1d3e644 (diff)
downloadvyos-1x-25eb2a82b29d02a332551975456743b3f791a6eb.tar.gz
vyos-1x-25eb2a82b29d02a332551975456743b3f791a6eb.zip
Merge branch 't4097-flow-accounting' into current
* t4097-flow-accounting: flow-accounting: T4106: support specification of capture packet length flow-accounting: T4105: drop "sflow agent-address auto" flow-accounting: T4099: rename "netflow source-ip" to source-address flow-accounting: T4097: move to get_config_dict()
Diffstat (limited to 'smoketest/scripts/cli/test_system_flow-accounting.py')
-rwxr-xr-xsmoketest/scripts/cli/test_system_flow-accounting.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/smoketest/scripts/cli/test_system_flow-accounting.py b/smoketest/scripts/cli/test_system_flow-accounting.py
index 57866a198..f3bed635c 100755
--- a/smoketest/scripts/cli/test_system_flow-accounting.py
+++ b/smoketest/scripts/cli/test_system_flow-accounting.py
@@ -201,11 +201,11 @@ class TestSystemFlowAccounting(VyOSUnitTestSHIM.TestCase):
uacctd = read_file(uacctd_conf)
- tmp = 'plugins: '
+ tmp = []
+ tmp.append('memory')
for server, server_config in netflow_server.items():
- tmp += f'nfprobe[nf_{server}],'
- tmp += 'memory'
- self.assertIn(f'{tmp}', uacctd)
+ tmp.append(f'nfprobe[nf_{server}]')
+ self.assertIn('plugins: ' + ','.join(tmp), uacctd)
for server, server_config in netflow_server.items():
self.assertIn(f'nfprobe_engine[nf_{server}]: {engine_id}', uacctd)