diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-17 18:07:41 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-17 18:07:41 +0200 | 
| commit | 731d0769e26074a6ca798005776fff0c26ecd1c8 (patch) | |
| tree | d34ccb11838ae1c7d0125de7533d507370bb7386 /ospfd/ospf_spf.c | |
| parent | e993b11c2311c6f424406b27456202c155c00f23 (diff) | |
Revert "bgpd, ospfd: update BGP when routes are removed from OSPF routing table"
This reverts commit bba9435157515689cb752e1ff9ac18a44f08b73a.
Diffstat (limited to 'ospfd/ospf_spf.c')
| -rw-r--r-- | ospfd/ospf_spf.c | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index 58fcbfa4a9..3707c5b882 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -2093,7 +2093,7 @@ void ospf_orr_spf_calculate_schedule_worker(struct thread *thread)  			/* Update routing table. */  			monotime(&start_time); -			ospf_orr_route_install(root, new_table, ospf->instance); +			ospf_orr_route_install(root, new_table);  			rt_time = monotime_since(&start_time, NULL);  			/* @@ -2144,6 +2144,13 @@ void ospf_orr_spf_calculate_schedule_worker(struct thread *thread)  						abr_time, ospf->areas->count);  				zlog_info("Reason(s) for SPF: %s", rbuf);  			} + +			root->new_table = new_table; +			root->new_rtrs = new_rtrs; + +			/* Send IGP Metric update to BGP */ +			ospf_orr_igp_metric_send_update(root, ospf->instance); +  		} /* ALL_LIST_ELEMENTS_RO() */  	} /* FOREACH_AFI_SAFI() */  }  | 
