summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_spf.c
diff options
context:
space:
mode:
authorMadhuri Kuruganti <maduri111@gmail.com>2022-09-19 00:23:20 +0200
committerMadhuri Kuruganti <maduri111@gmail.com>2022-10-12 10:13:55 +0200
commitbba9435157515689cb752e1ff9ac18a44f08b73a (patch)
tree1a134af8a8b42803a24c1bea7ac49940ef179326 /ospfd/ospf_spf.c
parentbgpd: fix for crash when no neighbor A.B.C.D remote-as AS_NUM with orr config (diff)
downloadfrr-bba9435157515689cb752e1ff9ac18a44f08b73a.tar.xz
frr-bba9435157515689cb752e1ff9ac18a44f08b73a.zip
bgpd, ospfd: update BGP when routes are removed from OSPF routing table
Signed-off-by: Madhuri Kuruganti <maduri111@gmail.com>
Diffstat (limited to 'ospfd/ospf_spf.c')
-rw-r--r--ospfd/ospf_spf.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
index 467ec7609..74213d7de 100644
--- a/ospfd/ospf_spf.c
+++ b/ospfd/ospf_spf.c
@@ -2060,7 +2060,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_orr_route_install(root, new_table, ospf->instance);
rt_time = monotime_since(&start_time, NULL);
/*
@@ -2111,13 +2111,6 @@ 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() */
}