summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-04-10 11:57:13 -0400
committerGitHub <noreply@github.com>2018-04-10 11:57:13 -0400
commitebf58e2e481e3be7d9649b9923a8dc2f015a4b11 (patch)
tree7ade500ad3876b2cf6993faba792be45fbed66ac /zebra/zebra_rib.c
parentaa2fc55b2096ee9704ddb74f200672ae999d9ab9 (diff)
parent20089ae2e41621e3e63aab67170d71bdf8605641 (diff)
Merge pull request #2009 from donaldsharp/self_originate
zebra: Notice when our route is deleted and re-install.
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c3
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,