summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-28 20:15:44 +0200
committerGitHub <noreply@github.com>2024-05-28 20:15:44 +0200
commitf04776073d1e46cfd022e6daf8742e0968d50e4b (patch)
treefaf2bd590e2ad890d7fb1de3e916647068e2409a /interface-definitions
parent48e5266e2bca8d1d7a2ee4bacbe0e6628de3fa66 (diff)
parent74910564f82e2837cd7eb35ea21f07601e5f8f0d (diff)
downloadvyos-1x-f04776073d1e46cfd022e6daf8742e0968d50e4b.tar.gz
vyos-1x-f04776073d1e46cfd022e6daf8742e0968d50e4b.zip
container: T6406: add CLI option for cpu-quota
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/container.xml.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index 2296a3e9e..1ad7215e5 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -192,6 +192,24 @@
</leafNode>
</children>
</tagNode>
+ <leafNode name="cpu-quota">
+ <properties>
+ <help>This limits the number of CPU resources the container can use</help>
+ <valueHelp>
+ <format>u32:0</format>
+ <description>Unlimited</description>
+ </valueHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Amount of CPU time the container can use in amount of cores (up to three decimals)</description>
+ </valueHelp>
+ <constraint>
+ <regex>(0|[1-9]\d*)(\.\d{1,3})?</regex>
+ </constraint>
+ <constraintErrorMessage>Container CPU limit must be a (decimal) number in range 0 to number of threads</constraintErrorMessage>
+ </properties>
+ <defaultValue>0</defaultValue>
+ </leafNode>
<leafNode name="memory">
<properties>
<help>Memory (RAM) available to this container</help>