summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-08-02 10:54:18 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-08-02 10:57:50 +0000
commit2958c9067f1387a46c1146a1fbc5a38e89634ed2 (patch)
tree993229ca3165ecf6e1519ddf7b9936d81ec6fe27 /op-mode-definitions
parent258e6873b60531fe70d868d2e53ce2f921fe7f13 (diff)
downloadvyos-1x-2958c9067f1387a46c1146a1fbc5a38e89634ed2.tar.gz
vyos-1x-2958c9067f1387a46c1146a1fbc5a38e89634ed2.zip
container: T4585: Rewrite show container
Rewrite op-mode: - show container - show container network - show container image to the new vyos.opmode format
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/container.xml.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/container.xml.in b/op-mode-definitions/container.xml.in
index fa66402dc..90bbc6889 100644
--- a/op-mode-definitions/container.xml.in
+++ b/op-mode-definitions/container.xml.in
@@ -100,13 +100,13 @@
<properties>
<help>Show containers</help>
</properties>
- <command>sudo podman ps --all</command>
+ <command>sudo ${vyos_op_scripts_dir}/container.py show_container</command>
<children>
<leafNode name="image">
<properties>
<help>Show container image</help>
</properties>
- <command>sudo podman image ls</command>
+ <command>sudo ${vyos_op_scripts_dir}/container.py show_image</command>
</leafNode>
<tagNode name="log">
<properties>
@@ -121,7 +121,7 @@
<properties>
<help>Show available container networks</help>
</properties>
- <command>sudo podman network ls</command>
+ <command>sudo ${vyos_op_scripts_dir}/container.py show_network</command>
</leafNode>
</children>
</node>