summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-27 19:20:49 +0200
committerGitHub <noreply@github.com>2021-04-27 19:20:49 +0200
commitaf108d812d1506a38feee7061fe935639dcc63a6 (patch)
tree2b0c4f700d71323e957667897a5d5ab420ea5549 /interface-definitions
parent41152d41a18fc75f91e105a7a85ccc64e67a99c0 (diff)
parentb141b56e6779644826129cf0899a87f28058c7ea (diff)
downloadvyos-1x-af108d812d1506a38feee7061fe935639dcc63a6.tar.gz
vyos-1x-af108d812d1506a38feee7061fe935639dcc63a6.zip
Merge pull request #818 from sever-sever/T2216-ports
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">