diff options
Diffstat (limited to 'op-mode-definitions/containers.xml.in')
-rw-r--r-- | op-mode-definitions/containers.xml.in | 61 |
1 files changed, 61 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..a22549dd9 --- /dev/null +++ b/op-mode-definitions/containers.xml.in @@ -0,0 +1,61 @@ +<?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.py --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.py --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.py --all</command> + <children> + <leafNode name="image"> + <properties> + <help>Delete container image</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/containers_op.py --image</command> + </leafNode> + <leafNode name="network"> + <properties> + <help>Show available container networks</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/containers_op.py --networks</command> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |