summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_vpp.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-04-24 12:08:27 +0300
committerGitHub <noreply@github.com>2026-04-24 12:08:27 +0300
commitb24eaac8fd4c56e98d33ad106382ce035d2a40f3 (patch)
tree9fbc83a80fdfca740f234d3c526175940310ff99 /smoketest/scripts/cli/test_vpp.py
parent45509acb7fb32f4680f2c03162846b21b7aa2f59 (diff)
parent754635c257b1860ce393cdc342c1b7ca7e65da1f (diff)
downloadvyos-1x-b24eaac8fd4c56e98d33ad106382ce035d2a40f3.tar.gz
vyos-1x-b24eaac8fd4c56e98d33ad106382ce035d2a40f3.zip
Merge pull request #5137 from c-po/sr-sysctl-fix
T8534: refactor sysctl_(read|write) to accept key parts
Diffstat (limited to 'smoketest/scripts/cli/test_vpp.py')
-rwxr-xr-xsmoketest/scripts/cli/test_vpp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py
index 8fcd541f0..e987da8df 100755
--- a/smoketest/scripts/cli/test_vpp.py
+++ b/smoketest/scripts/cli/test_vpp.py
@@ -1052,25 +1052,25 @@ class TestVPP(VyOSUnitTestSHIM.TestCase):
# Check if max-map-count has default auto calculated value
# but not less than '65530'
- self.assertEqual(sysctl_read('vm.max_map_count'), '65530')
+ self.assertEqual(sysctl_read(['vm', 'max_map_count']), '65530')
# The same is with: kernel.shmmax = '8589934592'
- self.assertEqual(sysctl_read('kernel.shmmax'), '8589934592')
+ self.assertEqual(sysctl_read(['kernel', 'shmmax']), '8589934592')
# Change max-map-count, shmmax and check
self.cli_set(hr_path + ['max-map-count', max_map_count])
self.cli_set(hr_path + ['shmmax', shmmax])
self.cli_commit()
- self.assertEqual(sysctl_read('vm.max_map_count'), max_map_count)
- self.assertEqual(sysctl_read('kernel.shmmax'), shmmax)
+ self.assertEqual(sysctl_read(['vm', 'max_map_count']), max_map_count)
+ self.assertEqual(sysctl_read(['kernel', 'shmmax']), shmmax)
# We expect max-map-count and shmmax will return auto calculated values
self.cli_delete(hr_path + ['max-map-count'])
self.cli_delete(hr_path + ['shmmax'])
self.cli_commit()
- self.assertEqual(sysctl_read('vm.max_map_count'), '65530')
- self.assertEqual(sysctl_read('kernel.shmmax'), '8589934592')
+ self.assertEqual(sysctl_read(['vm', 'max_map_count']), '65530')
+ self.assertEqual(sysctl_read(['kernel', 'shmmax']), '8589934592')
def test_17_1_vpp_pppoe_mapping(self):
config_file = '/run/accel-pppd/pppoe.conf'