summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 08cd650153..30c03e6cfb 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -168,15 +168,14 @@ static int
config_write_agentx (struct vty *vty)
{
if (agentx_enabled)
- vty_outln (vty, "agentx");
+ vty_out (vty, "agentx\n");
return 1;
}
DEFUN (agentx_enable,
agentx_enable_cmd,
"agentx",
- "SNMP AgentX protocol settings\n"
- "SNMP AgentX settings\n")
+ "SNMP AgentX protocol settings\n")
{
if (!agentx_enabled)
{
@@ -186,7 +185,7 @@ DEFUN (agentx_enable,
agentx_enabled = 1;
return CMD_SUCCESS;
}
- vty_outln (vty, "SNMP AgentX already enabled");
+ vty_out (vty, "SNMP AgentX already enabled\n");
return CMD_SUCCESS;
}
@@ -194,12 +193,11 @@ DEFUN (no_agentx,
no_agentx_cmd,
"no agentx",
NO_STR
- "SNMP AgentX protocol settings\n"
- "SNMP AgentX settings\n")
+ "SNMP AgentX protocol settings\n")
{
if (!agentx_enabled) return CMD_SUCCESS;
- vty_outln (vty, "SNMP AgentX support cannot be disabled once enabled");
- return CMD_WARNING;
+ vty_out (vty, "SNMP AgentX support cannot be disabled once enabled\n");
+ return CMD_WARNING_CONFIG_FAILED;
}
void