diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-13 21:56:08 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-13 21:56:08 +0200 |
commit | f1a05de982b2466907838a7e74d7d15ad4060db2 (patch) | |
tree | a41d430cf69e6603accec78238c8d86d59a389ad /babeld/babel_zebra.c | |
parent | Merge pull request #807 from Jafaral/qua2frr (diff) | |
download | frr-f1a05de982b2466907838a7e74d7d15ad4060db2.tar.xz frr-f1a05de982b2466907838a7e74d7d15ad4060db2.zip |
vtysh: return non-zero for configuration failures
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This allows frr-reload.py (or anything else that scripts via vtysh)
to know if the vtysh command worked or hit an error.
Diffstat (limited to 'babeld/babel_zebra.c')
-rw-r--r-- | babeld/babel_zebra.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c index 3a7a52ccc..4e96198e0 100644 --- a/babeld/babel_zebra.c +++ b/babeld/babel_zebra.c @@ -223,7 +223,7 @@ DEFUN (babel_redistribute_type, if (type < 0) { vty_outln (vty, "Invalid type %s", argv[1]->arg); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } zclient_redistribute (ZEBRA_REDISTRIBUTE_ADD, zclient, AFI_IP, type, 0, VRF_DEFAULT); @@ -244,7 +244,7 @@ DEFUN (no_babel_redistribute_type, if (type < 0) { vty_outln (vty, "Invalid type %s", argv[2]->arg); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } zclient_redistribute (ZEBRA_REDISTRIBUTE_DELETE, zclient, AFI_IP, type, 0, VRF_DEFAULT); @@ -279,7 +279,7 @@ DEFUN (debug_babel, vty_outln (vty, "Invalid type %s", argv[2]->arg); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } /* [Babel Command] */ @@ -309,7 +309,7 @@ DEFUN (no_debug_babel, vty_outln (vty, "Invalid type %s", argv[3]->arg); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } #endif /* NO_DEBUG */ |