diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-14 20:05:27 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-06-18 21:45:58 +0200 |
commit | 14481a6e226e441b7b971e1ec0dba10cd0d20f2f (patch) | |
tree | f845ec10c6478d82f148eeebb81178e675e83434 | |
parent | f1f2b647195db515e55a769370b4a689a4dafa44 (diff) | |
download | vyos-1x-14481a6e226e441b7b971e1ec0dba10cd0d20f2f.tar.gz vyos-1x-14481a6e226e441b7b971e1ec0dba10cd0d20f2f.zip |
op-mode: T2490: add "connect serial-proxy" CLI command
Used to connecte to a device exposed via serial proxy.
-rw-r--r-- | op-mode-definitions/connect-disconnect.xml | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ </properties> <command>sudo ${vyos_op_scripts_dir}/connect_disconnect.py --connect "$3"</command> </tagNode> + <tagNode name="serial-proxy"> + <properties> + <help>Connect to serial proxy port</help> + <completionHelp> + <path>service serial-proxy device</path> + </completionHelp> + </properties> + <command>/usr/bin/telnet localhost $(cli-shell-api returnActiveValue service serial-proxy device "$3" port)</command> + </tagNode> </children> </node> <node name="disconnect"> |