diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-05 15:28:38 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-09 10:16:06 -0400 |
| commit | 62ff928b37da20ece0e3df0071998b2fe9d3b21a (patch) | |
| tree | 6410f01c93e83bdbd6993374a6994a2b5f65f1c8 /lib/agentx.c | |
| parent | 628132044645cfc6214b7807dd63cd80dde5d08a (diff) | |
*: 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 11d5c9385d..e1d8b54043 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, |
