Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -3947,8 +3947,10 @@ static void bgp_process_main_one(struct bgp *bgp, struct bgp_dest *dest,
* we need to withdraw the route first to clear
* the nh neigh and the RMAC entry.
*/
if (old_select &&
is_route_parent_evpn(old_select))
if (old_select && is_route_parent_evpn(old_select) &&
old_select->attr->nexthop.s_addr != new_select->attr->nexthop.s_addr &&
!memcmp(&old_select->attr->rmac, &new_select->attr->rmac,
sizeof(struct ethaddr)))
bgp_zebra_withdraw_actual(dest, old_select, bgp);

bgp_zebra_route_install(dest, new_select, bgp, true,
Expand Down
Loading