summaryrefslogtreecommitdiff
path: root/lib/agentx.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/agentx.c')
-rw-r--r--lib/agentx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/agentx.c b/lib/agentx.c
index 8ce1545243..42c843bbb1 100644
--- a/lib/agentx.c
+++ b/lib/agentx.c
@@ -158,9 +158,11 @@ static void agentx_events_update(void)
}
/* AgentX node. */
+static int config_write_agentx(struct vty *vty);
static struct cmd_node agentx_node = {
.node = SMUX_NODE,
.prompt = "",
+ .config_write = config_write_agentx,
};
/* Logging NetSNMP messages */
@@ -247,7 +249,7 @@ void smux_init(struct thread_master *tm)
agentx_log_callback, NULL);
init_agent(FRR_SMUX_NAME);
- install_node(&agentx_node, config_write_agentx);
+ install_node(&agentx_node);
install_element(CONFIG_NODE, &agentx_enable_cmd);
install_element(CONFIG_NODE, &no_agentx_cmd);
}