mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 17:18:56 +00:00
Merge pull request #1674 from chiragshah6/mdev
ospfd: clean up route map prefixlist vrf during exit
This commit is contained in:
commit
b1123faa15
@ -32,6 +32,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "sockunion.h" /* for inet_aton () */
|
#include "sockunion.h" /* for inet_aton () */
|
||||||
#include "zclient.h"
|
#include "zclient.h"
|
||||||
|
#include "routemap.h"
|
||||||
#include "plist.h"
|
#include "plist.h"
|
||||||
#include "sockopt.h"
|
#include "sockopt.h"
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
@ -554,6 +555,20 @@ void ospf_terminate(void)
|
|||||||
for (ALL_LIST_ELEMENTS(om->ospf, node, nnode, ospf))
|
for (ALL_LIST_ELEMENTS(om->ospf, node, nnode, ospf))
|
||||||
ospf_finish(ospf);
|
ospf_finish(ospf);
|
||||||
|
|
||||||
|
/* Cleanup route maps */
|
||||||
|
route_map_add_hook(NULL);
|
||||||
|
route_map_delete_hook(NULL);
|
||||||
|
route_map_event_hook(NULL);
|
||||||
|
route_map_finish();
|
||||||
|
|
||||||
|
/* reverse prefix_list_init */
|
||||||
|
prefix_list_add_hook(NULL);
|
||||||
|
prefix_list_delete_hook(NULL);
|
||||||
|
prefix_list_reset();
|
||||||
|
|
||||||
|
/* Cleanup vrf info */
|
||||||
|
ospf_vrf_terminate();
|
||||||
|
|
||||||
/* Deliberately go back up, hopefully to thread scheduler, as
|
/* Deliberately go back up, hopefully to thread scheduler, as
|
||||||
* One or more ospf_finish()'s may have deferred shutdown to a timer
|
* One or more ospf_finish()'s may have deferred shutdown to a timer
|
||||||
* thread
|
* thread
|
||||||
|
Loading…
Reference in New Issue
Block a user