From 62ff928b37da20ece0e3df0071998b2fe9d3b21a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 5 May 2017 15:28:38 -0400 Subject: *: Allow agentx to be displayed as part of vtysh Modify code so that that vtysh can now accept the agentx command for snmp support Signed-off-by: Donald Sharp --- lib/agentx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/agentx.c') diff --git a/lib/agentx.c b/lib/agentx.c index 11d5c9385..e1d8b5404 100644 --- a/lib/agentx.c +++ b/lib/agentx.c @@ -134,7 +134,8 @@ agentx_events_update(void) static struct cmd_node agentx_node = { SMUX_NODE, - "" /* AgentX has no interface. */ + "", /* AgentX has no interface. */ + 1 }; /* Logging NetSNMP messages */ @@ -165,7 +166,7 @@ config_write_agentx (struct vty *vty) { if (agentx_enabled) vty_out (vty, "agentx%s", VTY_NEWLINE); - return 0; + return 1; } DEFUN (agentx_enable, @@ -183,7 +184,7 @@ DEFUN (agentx_enable, return CMD_SUCCESS; } vty_out (vty, "SNMP AgentX already enabled%s", VTY_NEWLINE); - return CMD_WARNING; + return CMD_SUCCESS; } DEFUN (no_agentx, -- cgit v1.2.3