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)
/* 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