summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_static.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:11:00 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:11:00 +0200
commit510dc06033392675bddef7c04652d23c539c3577 (patch)
tree08defc193d9f6429a87a085ca878b25bd4bf700b /zebra/zebra_static.c
parentzebra: support FIB override routes (diff)
downloadfrr-510dc06033392675bddef7c04652d23c539c3577.tar.xz
frr-510dc06033392675bddef7c04652d23c539c3577.zip
Revert "zebra: support FIB override routes"
This reverts commit 7569ae8bb7390224e16ee416cc0745d427a29818.
Diffstat (limited to 'zebra/zebra_static.c')
-rw-r--r--zebra/zebra_static.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/zebra/zebra_static.c b/zebra/zebra_static.c
index 1dc54e171..f2362e687 100644
--- a/zebra/zebra_static.c
+++ b/zebra/zebra_static.c
@@ -320,21 +320,13 @@ static_uninstall_route (afi_t afi, safi_t safi, struct prefix *p, struct static_
/* If there are other active nexthops, do an update. */
if (rib->nexthop_active_num > 1)
{
- /* Update route in kernel if it's in fib */
- if (CHECK_FLAG(rib->status, RIB_ENTRY_SELECTED_FIB))
- rib_install_kernel (rn, rib, 1);
- /* Update redistribution if it's selected */
- if (CHECK_FLAG(rib->flags, ZEBRA_FLAG_SELECTED))
- redistribute_update (&rn->p, rib, NULL);
+ rib_install_kernel (rn, rib, 1);
+ redistribute_update (&rn->p, rib, NULL);
}
else
{
- /* Remove from redistribute if selected route becomes inactive */
- if (CHECK_FLAG(rib->flags, ZEBRA_FLAG_SELECTED))
- redistribute_delete (&rn->p, rib);
- /* Remove from kernel if fib route becomes inactive */
- if (CHECK_FLAG(rib->status, RIB_ENTRY_SELECTED_FIB))
- rib_uninstall_kernel (rn, rib);
+ redistribute_delete (&rn->p, rib);
+ rib_uninstall_kernel (rn, rib);
}
}