diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-04-09 17:47:59 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2021-04-12 15:17:51 +0000 |
commit | 0dda528ca127714f207d37549b81ba700a371f4e (patch) | |
tree | ee67426a1b76e2d8950ffbc159aadf2efa63f20e /interface-definitions/containers.xml.in | |
parent | 44f766a7880e9264487e62f4aacc9f4f635219ed (diff) | |
download | vyos-1x-0dda528ca127714f207d37549b81ba700a371f4e.tar.gz vyos-1x-0dda528ca127714f207d37549b81ba700a371f4e.zip |
containers: T2216: Add podman for containers
Diffstat (limited to 'interface-definitions/containers.xml.in')
-rw-r--r-- | interface-definitions/containers.xml.in | 102 |
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> |