diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-13 19:56:08 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-07-13 19:56:08 +0000 |
| commit | f1a05de982b2466907838a7e74d7d15ad4060db2 (patch) | |
| tree | a41d430cf69e6603accec78238c8d86d59a389ad /lib/agentx.c | |
| parent | 4b8197a4f7c1b510c7a0eadc64c78e78ff98f578 (diff) | |
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 'lib/agentx.c')
| -rw-r--r-- | lib/agentx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/agentx.c b/lib/agentx.c index d058779aff..53e5f2bc53 100644 --- a/lib/agentx.c +++ b/lib/agentx.c @@ -197,7 +197,7 @@ DEFUN (no_agentx, { if (!agentx_enabled) return CMD_SUCCESS; vty_outln (vty, "SNMP AgentX support cannot be disabled once enabled"); - return CMD_WARNING; + return CMD_WARNING_CONFIG_FAILED; } void |
