mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-02 17:59:34 +00:00
Addition of OSPF-API - Amir Guindehi <amir@datacore.ch>
This commit is contained in:
parent
2d33f15789
commit
283ae334e8
@ -66,6 +66,11 @@
|
||||
#include "ospfd/ospf_te.h"
|
||||
#endif /* HAVE_OSPF_TE */
|
||||
|
||||
#ifdef SUPPORT_OSPF_API
|
||||
int ospf_apiserver_init (void);
|
||||
void ospf_apiserver_term (void);
|
||||
#endif /* SUPPORT_OSPF_API */
|
||||
|
||||
static void ospf_opaque_register_vty (void);
|
||||
static void ospf_opaque_funclist_init (void);
|
||||
static void ospf_opaque_funclist_term (void);
|
||||
@ -85,6 +90,11 @@ ospf_opaque_init (void)
|
||||
exit (1);
|
||||
#endif /* HAVE_OSPF_TE */
|
||||
|
||||
#ifdef SUPPORT_OSPF_API
|
||||
if (ospf_apiserver_init () != 0)
|
||||
exit (1);
|
||||
#endif /* SUPPORT_OSPF_API */
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -95,6 +105,10 @@ ospf_opaque_term (void)
|
||||
ospf_mpls_te_term ();
|
||||
#endif /* HAVE_OSPF_TE */
|
||||
|
||||
#ifdef SUPPORT_OSPF_API
|
||||
ospf_apiserver_term ();
|
||||
#endif /* SUPPORT_OSPF_API */
|
||||
|
||||
ospf_opaque_funclist_term ();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user