summaryrefslogtreecommitdiff
path: root/op-mode-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 /op-mode-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 'op-mode-definitions/containers.xml.in')
-rw-r--r--op-mode-definitions/containers.xml.in55
1 files changed, 55 insertions, 0 deletions
diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in
new file mode 100644
index 000000000..06f98b24e
--- /dev/null
+++ b/op-mode-definitions/containers.xml.in
@@ -0,0 +1,55 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="add">
+ <children>
+ <node name="container">
+ <properties>
+ <help>Add container image</help>
+ </properties>
+ <children>
+ <tagNode name="image">
+ <properties>
+ <help>Pull a new image for container</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/containers_op.sh --pull "${4}"</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="delete">
+ <children>
+ <node name="container">
+ <properties>
+ <help>Delete container image</help>
+ </properties>
+ <children>
+ <tagNode name="image">
+ <properties>
+ <help>Delete container image</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/containers_op.sh --remove "${4}"</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="show">
+ <children>
+ <node name="container">
+ <properties>
+ <help>Show containers</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/containers_op.sh --show-containers</command>
+ <children>
+ <leafNode name="image">
+ <properties>
+ <help>Delete container image</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/containers_op.sh --show-images</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>