diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-01-15 16:36:31 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-30 18:22:01 +0200 |
commit | 446bb95e0f2ab602a522ec170a7d9c5e9265547a (patch) | |
tree | f2c18d9f3b48acd2b2feb9463e9d36a93dbcb725 /zebra/zebra_fpm.c | |
parent | lib: Only display memory items that have allocations (diff) | |
download | frr-446bb95e0f2ab602a522ec170a7d9c5e9265547a.tar.xz frr-446bb95e0f2ab602a522ec170a7d9c5e9265547a.zip |
zebra: support FIB override routes
FIB override routes are for routing protocols that establish
shortcut routes, or establish point-to-point routes that should
not be redistributed. Namely this is useful NHRP daemon to come.
Zebra is extended to select two entries from RIB the "best" entry
from routing protocols, and the FIB entry to install to kernel.
FIB override routes are never selected as best entry, and thus
are never adverticed to other routing daemons. The best FIB
override, or if it does not exist the otherwise best RIB is
selected as FIB entry to be installed.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
[CF: Massage to fit cumulus tree]
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_fpm.c')
-rw-r--r-- | zebra/zebra_fpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c index 5a68bcbfa..a5a953c51 100644 --- a/zebra/zebra_fpm.c +++ b/zebra/zebra_fpm.c @@ -928,7 +928,7 @@ zfpm_route_for_update (rib_dest_t *dest) RIB_DEST_FOREACH_ROUTE (dest, rib) { - if (!CHECK_FLAG (rib->flags, ZEBRA_FLAG_SELECTED)) + if (!CHECK_FLAG (rib->status, RIB_ENTRY_SELECTED_FIB)) continue; return rib; |