mirror_frr/vtysh
Yaroslav Fedoriachenko a32f6a107f 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>
2021-09-21 17:51:04 +03:00
..
.gitignore vtysh: ignore generated file vtysh_daemons.h 2020-10-06 17:32:09 -04:00
daemons.pl vtysh: dynamically generate the list of daemons for commands 2020-10-02 15:06:27 +03:00
extract.pl.in vtysh: Allow us to gather a bit more data when extract.pl dies 2021-09-14 12:56:58 -04:00
Makefile build: non-recursive vtysh 2018-09-08 21:26:54 +02:00
subdir.am *: remove *.conf.sample files 2021-04-09 13:14:30 -04:00
vtysh_config.c *: explicitly print "exit" at the end of every node config 2021-08-23 22:08:20 +03:00
vtysh_main.c build: ignore prototype warnings from readline 2021-09-02 13:00:35 +02:00
vtysh_user.c *: sprintf -> snprintf 2020-04-20 19:14:33 -04:00
vtysh_user.h *: reindent 2017-07-17 14:04:07 +02:00
vtysh.c vtysh: Add error code if daemon is not running 2021-09-21 17:51:04 +03:00
vtysh.h vtysh: add CLI timestamp '-t' flag 2021-06-30 15:46:10 +00:00