From 14481a6e226e441b7b971e1ec0dba10cd0d20f2f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 14 Jun 2020 20:05:27 +0200 Subject: op-mode: T2490: add "connect serial-proxy" CLI command Used to connecte to a device exposed via serial proxy. --- op-mode-definitions/connect-disconnect.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/connect-disconnect.xml b/op-mode-definitions/connect-disconnect.xml index f0fcef5da..3d9262335 100644 --- a/op-mode-definitions/connect-disconnect.xml +++ b/op-mode-definitions/connect-disconnect.xml @@ -15,6 +15,15 @@ sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3" + + + Connect to serial proxy port + + service serial-proxy device + + + /usr/bin/telnet localhost $(cli-shell-api returnActiveValue service serial-proxy device "$3" port) + -- cgit v1.2.3