diff options
| author | Yaroslav Fedoriachenko <yar.fed99@gmail.com> | 2021-08-17 18:30:03 +0300 |
|---|---|---|
| committer | Yaroslav Fedoriachenko <yar.fed99@gmail.com> | 2021-09-21 17:51:04 +0300 |
| commit | a32f6a107fd2b9ed8295a6a3879c6aa2da3464d1 (patch) | |
| tree | 0d89b500853d56b8cd0f95404a7a1ffccad83b8f /lib/lib_errors.c | |
| parent | f0a477719266cdfa7d22ba0f9240af03fc10aeff (diff) | |
vtysh: Add error code if daemon is not running
After `<daemon_name> is not running` message vtysh does not return
error. For example if you disable ospf in `/etc/frr/daemons` and run
`vtysh -c configure -c "router ospf"` it prints the message to stderr,
but returns 0.
This commit will make vtysh return error when not in interractive mode.
But if you run commands from vtysh, you will still be able to enter
views and exit them if daemon is not running.
Signed-off-by: Yaroslav Fedoriachenko <yar.fed99@gmail.com>
Diffstat (limited to 'lib/lib_errors.c')
0 files changed, 0 insertions, 0 deletions
