diff options
-rw-r--r-- | op-mode-definitions/connect.xml.in | 9 | ||||
-rw-r--r-- | op-mode-definitions/containers.xml.in | 13 |
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"> |