diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-02-19 18:06:27 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-02-19 20:16:17 +0000 |
commit | cf36ced75094a519682875e0e73571824f34b6ec (patch) | |
tree | 4895eb3c8b98d64f88ea3b8fd58ad73c75692137 /interface-definitions/containers.xml.in | |
parent | 29ba813fb65b8b292105cdae4f8f71fcce6350a1 (diff) | |
download | vyos-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/containers.xml.in')
-rw-r--r-- | interface-definitions/containers.xml.in | 25 |
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> |