summaryrefslogtreecommitdiff
path: root/interface-definitions/containers.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-13 19:03:12 +0200
committerGitHub <noreply@github.com>2021-04-13 19:03:12 +0200
commitf5be83ccde5f164ffb9a0e9d5f1f2631f39e8216 (patch)
tree389664446401b09a7872d8e81564a0e6a92e3e5c /interface-definitions/containers.xml.in
parent1c38135e3312cddd198db948efacc0c2d3d8e2cf (diff)
parent0dda528ca127714f207d37549b81ba700a371f4e (diff)
downloadvyos-1x-f5be83ccde5f164ffb9a0e9d5f1f2631f39e8216.tar.gz
vyos-1x-f5be83ccde5f164ffb9a0e9d5f1f2631f39e8216.zip
Merge pull request #801 from sever-sever/T2216-pod
containers: T2216: Add podman for containers
Diffstat (limited to 'interface-definitions/containers.xml.in')
-rw-r--r--interface-definitions/containers.xml.in102
1 files changed, 102 insertions, 0 deletions
diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in
new file mode 100644
index 000000000..f54207936
--- /dev/null
+++ b/interface-definitions/containers.xml.in
@@ -0,0 +1,102 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="container" owner="${vyos_conf_scripts_dir}/containers.py">
+ <properties>
+ <help>Container applications</help>
+ </properties>
+ <children>
+ <tagNode name="name">
+ <properties>
+ <help>Container name</help>
+ </properties>
+ <children>
+ <leafNode name="allow-host-networks">
+ <properties>
+ <help>Allow host networks in container</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ <leafNode name="description">
+ <properties>
+ <help>Container description</help>
+ </properties>
+ </leafNode>
+ <tagNode name="environment">
+ <properties>
+ <help>Add custom environment variables</help>
+ </properties>
+ <children>
+ <leafNode name="value">
+ <properties>
+ <help>Set environment option value</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Set environment option value</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <leafNode name="image">
+ <properties>
+ <help>Image name in the hub-registry</help>
+ </properties>
+ </leafNode>
+ <tagNode name="network">
+ <properties>
+ <help>Attach user defined network to container</help>
+ <completionHelp>
+ <path>container network</path>
+ </completionHelp>
+ </properties>
+ <children>
+ <leafNode name="address">
+ <properties>
+ <help>Set IPv4 static address to container (optional)</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address (x.x.x.1 reserved)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </tagNode>
+ <tagNode name="network">
+ <properties>
+ <help>Network name</help>
+ </properties>
+ <children>
+ <leafNode name="description">
+ <properties>
+ <help>Network description</help>
+ </properties>
+ </leafNode>
+ <leafNode name="ipv4-prefix">
+ <properties>
+ <help>Prefix which allocated to that network</help>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IPv4 network and prefix length</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ip-prefix"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ <leafNode name="registry">
+ <properties>
+ <help>Add registry (default docker.io)</help>
+ <multi/>
+ </properties>
+ <defaultValue>docker.io</defaultValue>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>