summaryrefslogtreecommitdiff
path: root/ldpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-05-09 07:47:29 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-05-10 10:16:29 -0400
commit73ad64a6f4b039ce482ad5c3b080e8c9bb02890f (patch)
treee1db111a14838563686d207f5371fcf024edc5a7 /ldpd
parent51119823d02847f6095725e520264c85af94b37f (diff)
*: Modify agentx to be allowed to be called
If you had a situation where an operator turned on ospfd with snmp but not ospf6d and agentx was configured then you get into a situation where ospf6d would complain that the config for agentx did not exist. Let's modify the code to allow this situation to happen. Fixes: #15896 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldpd/ldpd.c b/ldpd/ldpd.c
index 492a36b3d6..4d38fdcd02 100644
--- a/ldpd/ldpd.c
+++ b/ldpd/ldpd.c
@@ -36,6 +36,7 @@
#include "libfrr.h"
#include "lib_errors.h"
#include "zlog_recirculate.h"
+#include "libagentx.h"
static void ldpd_shutdown(void);
static pid_t start_child(enum ldpd_process, char *, int, int, int);
@@ -370,6 +371,7 @@ main(int argc, char *argv[])
zlog_recirculate_subscribe(master, pipe_lde_log[0]);
zlog_recirculate_subscribe(master, pipe_ldpe_log[0]);
+ libagentx_init();
vrf_init(NULL, NULL, NULL, NULL);
access_list_init();
ldp_vty_init();