summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-24 17:41:09 +0100
committerGitHub <noreply@github.com>2023-01-24 17:41:09 +0100
commit155d3c1ac748a945ce62d3f9b2629696dbdb4b70 (patch)
tree6fc7385c23aa65fb706abc5639f01a8b0e3a940e /interface-definitions
parent56a134ab03b575394c1385a8c2de6dc8c96ecfba (diff)
parent7b7a8bf2923d06cdaad10663700e3bccc3fb7627 (diff)
downloadvyos-1x-155d3c1ac748a945ce62d3f9b2629696dbdb4b70.tar.gz
vyos-1x-155d3c1ac748a945ce62d3f9b2629696dbdb4b70.zip
Merge pull request #1773 from c-po/equuleus
container: T4947: support mounting container volumes as ro or rw (equuleus backport)
Diffstat (limited to 'interface-definitions')
-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 4bac305d1..b61664125 100644
--- a/interface-definitions/container.xml.in
+++ b/interface-definitions/container.xml.in
@@ -274,6 +274,26 @@
</valueHelp>
</properties>
</leafNode>
+ <leafNode name="mode">
+ <properties>
+ <help>Volume access mode ro/rw</help>
+ <completionHelp>
+ <list>ro rw</list>
+ </completionHelp>
+ <valueHelp>
+ <format>ro</format>
+ <description>Volume mounted into the container as read-only</description>
+ </valueHelp>
+ <valueHelp>
+ <format>rw</format>
+ <description>Volume mounted into the container as read-write</description>
+ </valueHelp>
+ <constraint>
+ <regex>(ro|rw)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>rw</defaultValue>
+ </leafNode>
</children>
</tagNode>
</children>