From 73ad64a6f4b039ce482ad5c3b080e8c9bb02890f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 9 May 2024 07:47:29 -0400 Subject: *: 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 --- ripd/rip_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ripd') diff --git a/ripd/rip_main.c b/ripd/rip_main.c index 734e7ac4d9..67469f5fe5 100644 --- a/ripd/rip_main.c +++ b/ripd/rip_main.c @@ -23,6 +23,7 @@ #include "routemap.h" #include "bfd.h" #include "mgmt_be_client.h" +#include "libagentx.h" #include "ripd/ripd.h" #include "ripd/rip_bfd.h" @@ -190,6 +191,7 @@ int main(int argc, char **argv) master = frr_init(); /* Library initialization. */ + libagentx_init(); rip_error_init(); keychain_init_new(true); rip_vrf_init(); -- cgit v1.2.3