diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-05-09 13:47:29 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-05-10 16:16:29 +0200 |
commit | 73ad64a6f4b039ce482ad5c3b080e8c9bb02890f (patch) | |
tree | e1db111a14838563686d207f5371fcf024edc5a7 /eigrpd | |
parent | Merge pull request #15976 from opensourcerouting/build-more-xref-setup (diff) | |
download | frr-73ad64a6f4b039ce482ad5c3b080e8c9bb02890f.tar.xz frr-73ad64a6f4b039ce482ad5c3b080e8c9bb02890f.zip |
*: 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 'eigrpd')
-rw-r--r-- | eigrpd/eigrp_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c index d387b9be1..319ac9253 100644 --- a/eigrpd/eigrp_main.c +++ b/eigrpd/eigrp_main.c @@ -36,6 +36,7 @@ #include "distribute.h" #include "libfrr.h" #include "routemap.h" +#include "libagentx.h" //#include "if_rmap.h" #include "eigrpd/eigrp_structs.h" @@ -178,9 +179,11 @@ int main(int argc, char **argv, char **envp) /* EIGRP master init. */ eigrp_master_init(); + eigrp_om->master = frr_init(); master = eigrp_om->master; + libagentx_init(); eigrp_error_init(); eigrp_vrf_init(); vrf_init(NULL, NULL, NULL, NULL); |