diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-05 21:28:38 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-09 16:16:06 +0200 |
commit | 62ff928b37da20ece0e3df0071998b2fe9d3b21a (patch) | |
tree | 6410f01c93e83bdbd6993374a6994a2b5f65f1c8 /lib/agentx.c | |
parent | Merge remote-tracking branch 'origin/stable/3.0' (diff) | |
download | frr-62ff928b37da20ece0e3df0071998b2fe9d3b21a.tar.xz frr-62ff928b37da20ece0e3df0071998b2fe9d3b21a.zip |
*: 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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/agentx.c')
-rw-r--r-- | lib/agentx.c | 7 |
1 files changed, 4 insertions, 3 deletions
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, |