summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2025-08-19 17:28:44 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2025-08-19 17:28:44 +0300
commit5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4 (patch)
tree609e472757978fabc328637f1b1b8b7e3c587d15
parent3bfcf335c5f16a6c814710b01f38342c40f85a8d (diff)
downloadvyos-1x-5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4.tar.gz
vyos-1x-5fa2ba9bae1f3f86ad9aa5c13eefa0aff49fd7f4.zip
T7678: Change node name to resource-limits
-rw-r--r--interface-definitions/system_option.xml.in4
-rwxr-xr-xsmoketest/scripts/cli/test_vpp.py4
-rwxr-xr-xsrc/conf_mode/system_option.py6
3 files changed, 7 insertions, 7 deletions
diff --git a/interface-definitions/system_option.xml.in b/interface-definitions/system_option.xml.in
index fad894153..e6a2b0b65 100644
--- a/interface-definitions/system_option.xml.in
+++ b/interface-definitions/system_option.xml.in
@@ -32,9 +32,9 @@
<constraintErrorMessage>Must be ignore, reboot, or poweroff</constraintErrorMessage>
</properties>
</leafNode>
- <node name="host-resources">
+ <node name="resource-limits">
<properties>
- <help>Sysctl parameters for host resources</help>
+ <help>Resource limits</help>
</properties>
<children>
<leafNode name="max-map-count">
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py
index cfb159e9a..b55db9e49 100755
--- a/smoketest/scripts/cli/test_vpp.py
+++ b/smoketest/scripts/cli/test_vpp.py
@@ -1418,10 +1418,10 @@ class TestVPP(VyOSUnitTestSHIM.TestCase):
self.cli_delete(base_sflow)
self.cli_commit()
- def test_19_host_resources(self):
+ def test_19_resource_limits(self):
max_map_count = '100000'
shmmax = '55555555555555'
- hr_path = ['system', 'option', 'host-resources']
+ hr_path = ['system', 'option', 'resource-limits']
# Check if max-map-count has default auto calculated value
# but not less than '65530'
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index 92f644437..303557412 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -267,7 +267,7 @@ def apply(options):
else:
write_file(kernel_dynamic_debug, f'module {module} -p')
- if 'host_resources' in options:
+ if 'resource_limits' in options:
unit_map = {'M': 1 << 20, 'G': 1 << 30}
total_pages = 0
@@ -283,8 +283,8 @@ def apply(options):
max_map_count_min = 65530 # ensures large workload compatibility
shmmax_min = 8589934592 # 8 GiB safe default for large allocations
- max_map_count_conf = options['host_resources'].get('max_map_count', 'auto')
- shmmax_conf = options['host_resources'].get('shmmax', 'auto')
+ max_map_count_conf = options['resource_limits'].get('max_map_count', 'auto')
+ shmmax_conf = options['resource_limits'].get('shmmax', 'auto')
parameters = {
'vm.max_map_count': (