]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Check the cost only when asbr_present for ECMP routes
authorYash Ranjan <ranjany@vmware.com>
Wed, 4 Aug 2021 11:53:10 +0000 (04:53 -0700)
committermergify-bot <noreply@mergify.io>
Tue, 10 Aug 2021 14:23:48 +0000 (14:23 +0000)
For ECMP routes, the metric cost and metric type are compared
even when the asbr entry is not present. This stops the routes
from getting removed when max age LSAs are received for the
ECMP routes.

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
(cherry picked from commit a867da2b6b1ab39a95ca30763aa27d0f66dad15e)

ospf6d/ospf6_asbr.c

index e5b274d066f2ffb77184859c745f47eaa2af55d8..544bfe6ae496f329076d7672fb1a4fd5230f01a3 100644 (file)
@@ -673,7 +673,7 @@ void ospf6_asbr_lsa_remove(struct ospf6_lsa *lsa,
                                /* Compare LSA cost with current
                                 * route info.
                                 */
-                               if (!asbr_entry
+                               if (asbr_entry
                                    && (o_path->cost != route_to_del->path.cost
                                        || o_path->u.cost_e2
                                                   != route_to_del->path.u