summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-01-10 15:24:42 +0000
committerGitHub <noreply@github.com>2023-01-10 15:24:42 +0000
commitc86ed3df1e309b6a98de3ce88b508ea79453f9b1 (patch)
tree4f24bc1da40b457309989e4a9ab55933de471070 /op-mode-definitions
parentde686b3bee8ffb410142c9eeb2a7bf788316e513 (diff)
parentba4aebaaa816d810727ded073d3b09c1723cded7 (diff)
downloadvyos-1x-c86ed3df1e309b6a98de3ce88b508ea79453f9b1.tar.gz
vyos-1x-c86ed3df1e309b6a98de3ce88b508ea79453f9b1.zip
Merge pull request #1744 from jestabro/container-op-mode
container: T4880: expose 'add/delete container image' in HTTP-API
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/container.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/container.xml.in b/op-mode-definitions/container.xml.in
index 786bd66d3..ada9a4d59 100644
--- a/op-mode-definitions/container.xml.in
+++ b/op-mode-definitions/container.xml.in
@@ -11,7 +11,7 @@
<properties>
<help>Pull a new image for container</help>
</properties>
- <command>sudo podman image pull "${4}"</command>
+ <command>sudo ${vyos_op_scripts_dir}/container.py add_image --name "${4}"</command>
</tagNode>
</children>
</node>
@@ -44,7 +44,7 @@
<script>sudo podman image ls -q</script>
</completionHelp>
</properties>
- <command>sudo podman image rm --force "${4}"</command>
+ <command>sudo ${vyos_op_scripts_dir}/container.py delete_image --name "${4}"</command>
</tagNode>
</children>
</node>