mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 16:29:32 +00:00
zebra: Add script initialization and destroy
Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
parent
1247efcce4
commit
461c173cbd
@ -255,6 +255,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 +300,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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user