summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-19 18:06:27 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-02-19 20:16:17 +0000
commitcf36ced75094a519682875e0e73571824f34b6ec (patch)
tree4895eb3c8b98d64f88ea3b8fd58ad73c75692137 /interface-definitions
parent29ba813fb65b8b292105cdae4f8f71fcce6350a1 (diff)
downloadvyos-1x-cf36ced75094a519682875e0e73571824f34b6ec.tar.gz
vyos-1x-cf36ced75094a519682875e0e73571824f34b6ec.zip
containers: T4249: Allow to connect host device to the container
Ability to attach host devices to the container It can be disk, USB device or any device from the directory /dev set container name alp01 device disk source '/dev/vdb1' set container name alp01 device disk destination '/dev/mydisk'
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/containers.xml.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in
index 30c7110b8..07686b16e 100644
--- a/interface-definitions/containers.xml.in
+++ b/interface-definitions/containers.xml.in
@@ -58,6 +58,31 @@
</properties>
</leafNode>
#include <include/generic-description.xml.i>
+ <tagNode name="device">
+ <properties>
+ <help>Add a host device to the container</help>
+ </properties>
+ <children>
+ <leafNode name="source">
+ <properties>
+ <help>Source device (Example: "/dev/x")</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Source device</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="destination">
+ <properties>
+ <help>Destination container device (Example: "/dev/x")</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Destination container device</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
#include <include/generic-disable-node.xml.i>
<tagNode name="environment">
<properties>