summaryrefslogtreecommitdiff
path: root/interface-definitions/container.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-31 17:17:02 +0200
committerGitHub <noreply@github.com>2023-08-31 17:17:02 +0200
commit18a6163ed2e0bbbc2924f893e6954a9eba4470b1 (patch)
tree1b3affedf5e4dce24791cab6cf5d2142fddcc48e /interface-definitions/container.xml.in
parentca0cf364f05b391fbe2ebd1e87e2a022d94a2e6d (diff)
parent6dd0499f4cb97dd749f3f9aa5b649039ae7cf6c4 (diff)
downloadvyos-1x-18a6163ed2e0bbbc2924f893e6954a9eba4470b1.tar.gz
vyos-1x-18a6163ed2e0bbbc2924f893e6954a9eba4470b1.zip
Merge pull request #2189 from sever-sever/T5531
T5531: Containers add label option
Diffstat (limited to 'interface-definitions/container.xml.in')
-rw-r--r--interface-definitions/container.xml.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in
index baab6104f..8259e7bdf 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -145,6 +145,26 @@
<constraintErrorMessage>The command's arguments must be ascii characters, use &amp;quot; and &amp;apos for double and single quotes respectively</constraintErrorMessage>
</properties>
</leafNode>
+ <tagNode name="label">
+ <properties>
+ <help>Add label variables</help>
+ <constraint>
+ <regex>[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?</regex>
+ </constraint>
+ <constraintErrorMessage>Label variable name must be alphanumeric and can contain hyphen, dots and underscores</constraintErrorMessage>
+ </properties>
+ <children>
+ <leafNode name="value">
+ <properties>
+ <help>Set label option value</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Set label option value</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
<leafNode name="memory">
<properties>
<help>Memory (RAM) available to this container</help>