diff options
Diffstat (limited to 'zebra/zebra_router.c')
| -rw-r--r-- | zebra/zebra_router.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index d930f59866..4ce756c953 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -30,6 +30,7 @@ #include "zebra_mlag.h" #include "zebra_nhg.h" #include "debug.h" +#include "zebra_script.h" DEFINE_MTYPE_STATIC(ZEBRA, RIB_TABLE_INFO, "RIB table info"); DEFINE_MTYPE_STATIC(ZEBRA, ZEBRA_RT_TABLE, "Zebra VRF table"); @@ -234,6 +235,9 @@ void zebra_router_terminate(void) RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp) zebra_router_free_table(zrt); + if (zrouter.lsp_process_q) + work_queue_free_and_null(&zrouter.lsp_process_q); + work_queue_free_and_null(&zrouter.ribq); meta_queue_free(zrouter.mq); @@ -255,6 +259,10 @@ void zebra_router_terminate(void) hash_free(zrouter.ipset_entry_hash); hash_clean(zrouter.iptable_hash, zebra_pbr_iptable_free); hash_free(zrouter.iptable_hash); + +#ifdef HAVE_SCRIPTING + zebra_script_destroy(); +#endif } bool zebra_router_notify_on_ack(void) @@ -296,4 +304,8 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack) zrouter.asic_offloaded = asic_offload; zrouter.notify_on_ack = notify_on_ack; + +#ifdef HAVE_SCRIPTING + zebra_script_init(); +#endif } |
