summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-04-23 13:11:45 +0000
committersever-sever <v.gletenko@vyos.io>2021-04-27 09:25:30 +0000
commitb141b56e6779644826129cf0899a87f28058c7ea (patch)
tree3173ec0d09fefe3c5649b1d358c43c1915a5b5d0 /interface-definitions
parent821d9e4d36d7520973d6f2cd146feebb9918227a (diff)
downloadvyos-1x-b141b56e6779644826129cf0899a87f28058c7ea.tar.gz
vyos-1x-b141b56e6779644826129cf0899a87f28058c7ea.zip
container: T2216: Add binding for ports and volumes
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/containers.xml.in75
1 files changed, 75 insertions, 0 deletions
diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in
index 47b41c834..6fc53c105 100644
--- a/interface-definitions/containers.xml.in
+++ b/interface-definitions/containers.xml.in
@@ -64,6 +64,81 @@
</leafNode>
</children>
</tagNode>
+ <tagNode name="port">
+ <properties>
+ <help>Publish port to the container</help>
+ </properties>
+ <children>
+ <leafNode name="source">
+ <properties>
+ <help>Source host port</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>Source host port</description>
+ </valueHelp>
+ <valueHelp>
+ <format>start-end</format>
+ <description>Source host port range (e.g. 10025-10030)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="port-range"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="destination">
+ <properties>
+ <help>Destination container port</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>Destination container port</description>
+ </valueHelp>
+ <valueHelp>
+ <format>start-end</format>
+ <description>Destination container port range (e.g. 10025-10030)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="port-range"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="protocol">
+ <properties>
+ <help>Protocol tcp/udp</help>
+ <completionHelp>
+ <list>tcp udp</list>
+ </completionHelp>
+ <constraint>
+ <regex>^(tcp|udp)$</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <tagNode name="volume">
+ <properties>
+ <help>Mount a volume into the container</help>
+ </properties>
+ <children>
+ <leafNode name="source">
+ <properties>
+ <help>Source host directory</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Source host directory</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="destination">
+ <properties>
+ <help>Destination container directory</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Destination container directory</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
</children>
</tagNode>
<tagNode name="network">