]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: when override flag is set, do not forget to update nht 5856/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 19 Feb 2020 16:27:06 +0000 (17:27 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 5 Mar 2020 15:06:05 +0000 (16:06 +0100)
this flag can be used when one routing daemon wants to force his route
to be injected prioritary with other routes, including selected routes.
for that, do not forget to update the new_selected pointer in the zebra
nexthop tracking algorithm.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/zebra_rnh.c

index 74c3ac3712ae9a331d74a0e6aacbd0f8cf37960a..8d99ce840e2c047005fb25cfedf12e1851b26768 100644 (file)
@@ -669,7 +669,8 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi,
                                                zebra_route_string(re->type));
                                continue;
                        }
-                       if (!CHECK_FLAG(re->flags, ZEBRA_FLAG_SELECTED)) {
+                       if (!CHECK_FLAG(re->flags, ZEBRA_FLAG_SELECTED) &&
+                           !CHECK_FLAG(re->flags, ZEBRA_FLAG_FIB_OVERRIDE)) {
                                if (IS_ZEBRA_DEBUG_NHT_DETAILED)
                                        zlog_debug(
                                                "\tRoute Entry %s !selected",