From 0e4b36f4c550baf151a1bbc68e4ed1bea8cd3c94 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 22 Aug 2021 19:23:25 +0200 Subject: container: op-mode: T3765: move "connect container" command to container.xml.in file --- op-mode-definitions/connect.xml.in | 9 --------- op-mode-definitions/containers.xml.in | 13 +++++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/connect.xml.in b/op-mode-definitions/connect.xml.in index 88f91ae32..8f19eac70 100644 --- a/op-mode-definitions/connect.xml.in +++ b/op-mode-definitions/connect.xml.in @@ -24,15 +24,6 @@ sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3" - - - Attach to a running container - - container name - - - echo "Use Ctrl+p and Ctrl+q to detach"; sudo podman attach "$3" - diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in index a22549dd9..4c95fa315 100644 --- a/op-mode-definitions/containers.xml.in +++ b/op-mode-definitions/containers.xml.in @@ -17,6 +17,19 @@ + + + + + Attach to a running container + + container name + + + echo "Use Ctrl+p and Ctrl+q to detach"; sudo podman attach "$3" + + + -- cgit v1.2.3