summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-07-14 06:24:01 -0400
committerGitHub <noreply@github.com>2017-07-14 06:24:01 -0400
commit905c15079393987f8cfdd55c30e7e1a3248c8c48 (patch)
tree0a210b213a525f2880cd694b2e45833e8430d282 /lib/agentx.c
parent2ddcf30b2a523ca760b32b1a72fd2f16a6c5dc89 (diff)
parentf1a05de982b2466907838a7e74d7d15ad4060db2 (diff)
Merge pull request #815 from dwalton76/CMD_WARNING_take2
vtysh: return non-zero for configuration failures
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c2
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