diff options
author | Alex W <embezzle.dev@proton.me> | 2025-02-21 22:03:29 +0000 |
---|---|---|
committer | Alex W <embezzle.dev@proton.me> | 2025-02-22 15:34:55 +0000 |
commit | 98dd5131799bd480b3522efeb168b0899356065b (patch) | |
tree | 8071a56eb615cbe2cd56a4f43455316eb7d5a2ff /interface-definitions | |
parent | 4d9d45a45acaa506b9cc99dbb86e12b9cb692dd1 (diff) | |
download | vyos-1x-98dd5131799bd480b3522efeb168b0899356065b.tar.gz vyos-1x-98dd5131799bd480b3522efeb168b0899356065b.zip |
container: T7185: Allow tmpfs mounts within containers
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/container.xml.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index 04318a7c9..65ac99e12 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -412,6 +412,35 @@ </constraint> </properties> </leafNode> + <tagNode name="tmpfs"> + <properties> + <help>Mount a tmpfs filesystem into the container</help> + </properties> + <children> + <leafNode name="destination"> + <properties> + <help>Destination container directory</help> + <valueHelp> + <format>txt</format> + <description>Destination container directory</description> + </valueHelp> + </properties> + </leafNode> + <leafNode name="size"> + <properties> + <help>tmpfs filesystem size in MB</help> + <valueHelp> + <format>u32:1-65536</format> + <description>tmpfs filesystem size in MB</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-65535"/> + </constraint> + <constraintErrorMessage>Container tmpfs size must be between 1 and 65535 MB</constraintErrorMessage> + </properties> + </leafNode> + </children> + </tagNode> <tagNode name="volume"> <properties> <help>Mount a volume into the container</help> |