mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +00:00
Merge pull request #11427 from anlancs/fix/minor-2
zebra: remove redundant calling hook for fpm
This commit is contained in:
commit
0ba27f1cb2
@ -4171,21 +4171,15 @@ unsigned long rib_score_proto(uint8_t proto, unsigned short instance)
|
|||||||
void rib_close_table(struct route_table *table)
|
void rib_close_table(struct route_table *table)
|
||||||
{
|
{
|
||||||
struct route_node *rn;
|
struct route_node *rn;
|
||||||
struct rib_table_info *info;
|
|
||||||
rib_dest_t *dest;
|
rib_dest_t *dest;
|
||||||
|
|
||||||
if (!table)
|
if (!table)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
info = route_table_get_info(table);
|
|
||||||
|
|
||||||
for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) {
|
for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) {
|
||||||
dest = rib_dest_from_rnode(rn);
|
dest = rib_dest_from_rnode(rn);
|
||||||
|
|
||||||
if (dest && dest->selected_fib) {
|
if (dest && dest->selected_fib) {
|
||||||
if (info->safi == SAFI_UNICAST)
|
|
||||||
hook_call(rib_update, rn, NULL);
|
|
||||||
|
|
||||||
rib_uninstall_kernel(rn, dest->selected_fib);
|
rib_uninstall_kernel(rn, dest->selected_fib);
|
||||||
dest->selected_fib = NULL;
|
dest->selected_fib = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user