diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-31 17:08:21 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-09 07:54:57 -0400 |
| commit | b8faa875f79f4dd972979fd66117530b74cb69cc (patch) | |
| tree | 08d4885db724a8a3ca608d2180d2884fe0a56309 /zebra/zebra_rib.c | |
| parent | 8227cf93336730f6359db5c6c682eb97828c5da9 (diff) | |
zebra: Notice when our route is deleted and re-install.
The code to reinstall self originated routes was not behaving
correctly. For some reason we were looking for self originated
routes from the kernel to be of type KERNEL. This was probably
missed when we started installing the route types. We should
depend on the self originated flag that we determine from
the callback from the kernel.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index effe672a9d..48969e87f2 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2491,8 +2491,7 @@ void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type, * If we can show that this code path is * dead then we can remove it. */ - if (fib && type == ZEBRA_ROUTE_KERNEL - && CHECK_FLAG(flags, ZEBRA_FLAG_SELFROUTE)) { + if (fib && CHECK_FLAG(flags, ZEBRA_FLAG_SELFROUTE)) { if (IS_ZEBRA_DEBUG_RIB) { rnode_debug( rn, vrf_id, |
