summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Vollmar <nvollmar@gmail.com>2024-06-09 22:59:26 +0200
committerNicolas Vollmar <nvo@scaling.ch>2024-06-10 11:24:32 +0200
commitf030464952168b553b5b3e29b461d437c2642a9b (patch)
tree8c3f8f5749417164618f6dc68968b92ed648b367 /interface-definitions
parent717ea64e4c54a8be619ffc29c16c6203b29319dd (diff)
downloadvyos-1x-f030464952168b553b5b3e29b461d437c2642a9b.tar.gz
vyos-1x-f030464952168b553b5b3e29b461d437c2642a9b.zip
T6219: align with system sysctl and limit parameters to supported
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in31
1 files changed, 20 insertions, 11 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index cd970591b..6ea44a6d4 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -71,26 +71,35 @@
<multi/>
</properties>
</leafNode>
- <tagNode name="kernel-parameter">
+ <node name="sysctl">
<properties>
- <help>Add custom kernel parameters (sysctl)</help>
- <constraint>
- <regex>[._a-z*]+</regex>
- </constraint>
- <constraintErrorMessage>Kernel parameter name must be alphanumeric and can contain periods, asterisks and underscores</constraintErrorMessage>
+ <help>Configure namespaced kernel parameters of the container</help>
</properties>
<children>
- <leafNode name="value">
+ <tagNode name="parameter">
<properties>
- <help>Set kernel parameter option value</help>
+ <help>Sysctl key name</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_container_sysctl_parameters.sh</script>
+ </completionHelp>
<valueHelp>
<format>txt</format>
- <description>Set kernel parameter option value</description>
+ <description>Sysctl key name</description>
</valueHelp>
+ <constraint>
+ <validator name="sysctl"/>
+ </constraint>
</properties>
- </leafNode>
+ <children>
+ <leafNode name="value">
+ <properties>
+ <help>Sysctl configuration value</help>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
</children>
- </tagNode>
+ </node>
#include <include/generic-description.xml.i>
<tagNode name="device">
<properties>