]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: Check the cost only when asbr_present for ECMP routes 9290/head
authorYash Ranjan <ranjany@vmware.com>
Wed, 4 Aug 2021 11:53:10 +0000 (04:53 -0700)
committerYash Ranjan <ranjany@vmware.com>
Wed, 4 Aug 2021 12:03:10 +0000 (05:03 -0700)
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>
ospf6d/ospf6_asbr.c

index 165e409eedbeb283f51457eca44b5575abd415be..b7cbc13b728fee4736cc25eaa1e295e69e46a727 100644 (file)
@@ -811,7 +811,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