summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-22 19:23:25 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-22 19:23:25 +0200
commit0e4b36f4c550baf151a1bbc68e4ed1bea8cd3c94 (patch)
tree101c4f49d52144c29c0f580bbac4e89a0119262b
parenta30d74f41647258d0c338c495ea7fea90dec3663 (diff)
downloadvyos-1x-0e4b36f4c550baf151a1bbc68e4ed1bea8cd3c94.tar.gz
vyos-1x-0e4b36f4c550baf151a1bbc68e4ed1bea8cd3c94.zip
container: op-mode: T3765: move "connect container" command to container.xml.in file
-rw-r--r--op-mode-definitions/connect.xml.in9
-rw-r--r--op-mode-definitions/containers.xml.in13
2 files changed, 13 insertions, 9 deletions
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 @@
</properties>
<command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3"</command>
</tagNode>
- <tagNode name="container">
- <properties>
- <help>Attach to a running container</help>
- <completionHelp>
- <path>container name</path>
- </completionHelp>
- </properties>
- <command>echo "Use Ctrl+p and Ctrl+q to detach"; sudo podman attach "$3"</command>
- </tagNode>
</children>
</node>
</interfaceDefinition>
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 @@
</node>
</children>
</node>
+ <node name="connect">
+ <children>
+ <tagNode name="container">
+ <properties>
+ <help>Attach to a running container</help>
+ <completionHelp>
+ <path>container name</path>
+ </completionHelp>
+ </properties>
+ <command>echo "Use Ctrl+p and Ctrl+q to detach"; sudo podman attach "$3"</command>
+ </tagNode>
+ </children>
+ </node>
<node name="delete">
<children>
<node name="container">