mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 11:21:07 +00:00
bgpd: Call a hook when as-path filter is replaced
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
fcc48b4f9e
commit
f709b31b88
@ -189,7 +189,7 @@ static void as_list_filter_add(struct as_list *aslist,
|
||||
replace = bgp_aslist_seq_check(aslist, asfilter->seq);
|
||||
if (replace) {
|
||||
as_filter_entry_replace(aslist, replace, asfilter);
|
||||
return;
|
||||
goto hook;
|
||||
}
|
||||
|
||||
/* Check insert point. */
|
||||
@ -218,6 +218,7 @@ static void as_list_filter_add(struct as_list *aslist,
|
||||
aslist->tail = asfilter;
|
||||
}
|
||||
|
||||
hook:
|
||||
/* Run hook function. */
|
||||
if (as_list_master.add_hook)
|
||||
(*as_list_master.add_hook)(aslist->name);
|
||||
|
Loading…
Reference in New Issue
Block a user