summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-05 19:47:42 +0100
committerChristian Poessinger <christian@poessinger.com>2022-11-05 19:47:42 +0100
commitacf2c24f8eec0918ca419db68196c76dc827f197 (patch)
treea302febedc014a124b2d94b33830c5a79c77ef19 /interface-definitions
parent6c0473efd27205d6f51ee1726b46f5898b723cd3 (diff)
downloadvyos-1x-acf2c24f8eec0918ca419db68196c76dc827f197.tar.gz
vyos-1x-acf2c24f8eec0918ca419db68196c76dc827f197.zip
container: T4802: support per container shared-memory size configuration
Size of /dev/shm within a container can be defined via --shm-size when invoking the container. Add corresponding CLI node.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index 51171d881..f84c94a40 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -111,7 +111,7 @@
</leafNode>
<leafNode name="memory">
<properties>
- <help>Constrain the memory available to a container</help>
+ <help>Memory (RAM) available to this container</help>
<valueHelp>
<format>u32:0</format>
<description>Unlimited</description>
@@ -127,6 +127,24 @@
</properties>
<defaultValue>512</defaultValue>
</leafNode>
+ <leafNode name="shared-memory">
+ <properties>
+ <help>Shared memory available to this container</help>
+ <valueHelp>
+ <format>u32:0</format>
+ <description>Unlimited</description>
+ </valueHelp>
+ <valueHelp>
+ <format>u32:1-8192</format>
+ <description>Container memory in megabytes (MB)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-8192"/>
+ </constraint>
+ <constraintErrorMessage>Container memory must be in range 0 to 8192 MB</constraintErrorMessage>
+ </properties>
+ <defaultValue>64</defaultValue>
+ </leafNode>
<tagNode name="network">
<properties>
<help>Attach user defined network to container</help>