summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYash Ranjan <ranjany@vmware.com>2021-08-04 04:53:10 -0700
committermergify-bot <noreply@mergify.io>2021-08-10 14:23:48 +0000
commitf4a96f9731a3315b2bb7a8946b44b694057b8b98 (patch)
treef4e61b066ea17062e102265045f941ebbb8eeb42
parentd073c25bd9765f77ed289e6bcc8d8f940a878eba (diff)
ospf6d: Check the cost only when asbr_present for ECMP routes
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)
-rw-r--r--ospf6d/ospf6_asbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c
index e5b274d066..544bfe6ae4 100644
--- a/ospf6d/ospf6_asbr.c
+++ b/ospf6d/ospf6_asbr.c
@@ -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