diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-24 15:25:41 +0300 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-10-24 15:25:41 +0300 |
commit | 59c0c0b2e5e0793804785bec0d702b879114a795 (patch) | |
tree | 79034dd2eda9ba0e60b3cf7efa38766ad982b42b | |
parent | ceb64f3dca08a14ea4ea407844103e81f8e4648a (diff) | |
download | vyos-1x-59c0c0b2e5e0793804785bec0d702b879114a795.tar.gz vyos-1x-59c0c0b2e5e0793804785bec0d702b879114a795.zip |
op_mode: T6808: Console server op mode commands throw errors when console server is not configured
-rw-r--r-- | op-mode-definitions/show-console-server.xml.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/show-console-server.xml.in b/op-mode-definitions/show-console-server.xml.in index eae6fd536..03dd97d83 100644 --- a/op-mode-definitions/show-console-server.xml.in +++ b/op-mode-definitions/show-console-server.xml.in @@ -21,13 +21,13 @@ <properties> <help>Examine console ports and configured baud rates</help> </properties> - <command>/usr/bin/console -x</command> + <command>if cli-shell-api existsActive service console-server; then /usr/bin/console -x; else echo "Console server is not configured"; fi</command> </leafNode> <leafNode name="user"> <properties> <help>Show users on various consoles</help> </properties> - <command>/usr/bin/console -u</command> + <command>if cli-shell-api existsActive service console-server; then /usr/bin/console -u; else echo "Console server is not configured"; fi</command> </leafNode> </children> </node> |