summaryrefslogtreecommitdiff
path: root/op-mode-definitions/containers.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-22 19:23:34 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-22 19:23:34 +0200
commitdeaa1e8b65bdaf89caa9855d659dd7da459cf415 (patch)
tree8b79ca413c6bb8cf4722768b49c67945b5ed1a5f /op-mode-definitions/containers.xml.in
parent0e4b36f4c550baf151a1bbc68e4ed1bea8cd3c94 (diff)
downloadvyos-1x-deaa1e8b65bdaf89caa9855d659dd7da459cf415.tar.gz
vyos-1x-deaa1e8b65bdaf89caa9855d659dd7da459cf415.zip
container: op-mode: T3765: add "restart container" command
Diffstat (limited to 'op-mode-definitions/containers.xml.in')
-rw-r--r--op-mode-definitions/containers.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in
index 4c95fa315..94dd24369 100644
--- a/op-mode-definitions/containers.xml.in
+++ b/op-mode-definitions/containers.xml.in
@@ -71,4 +71,17 @@
</node>
</children>
</node>
+ <node name="restart">
+ <children>
+ <tagNode name="container">
+ <properties>
+ <help>Restart a given container</help>
+ <completionHelp>
+ <path>container name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo podman restart "$3"</command>
+ </tagNode>
+ </children>
+ </node>
</interfaceDefinition>