mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
bgpd: Do not withdraw EVPN route to update
Previously bgpd needed to send a withdraw followed by an install to update an EVPN prefix route. With refcount tracking in zebra this is no longer needed Signed-off-by: Christopher Dziomba <christopher.dziomba@telekom.de>
This commit is contained in:
parent
9f8027b8a4
commit
068a00f11e
|
@ -3968,14 +3968,6 @@ static void bgp_process_main_one(struct bgp *bgp, struct bgp_dest *dest,
|
||||||
|| new_select->sub_type == BGP_ROUTE_AGGREGATE
|
|| new_select->sub_type == BGP_ROUTE_AGGREGATE
|
||||||
|| new_select->sub_type == BGP_ROUTE_IMPORTED)) {
|
|| new_select->sub_type == BGP_ROUTE_IMPORTED)) {
|
||||||
|
|
||||||
/* if this is an evpn imported type-5 prefix,
|
|
||||||
* 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))
|
|
||||||
bgp_zebra_withdraw_actual(dest, old_select, bgp);
|
|
||||||
|
|
||||||
bgp_zebra_route_install(dest, new_select, bgp, true,
|
bgp_zebra_route_install(dest, new_select, bgp, true,
|
||||||
NULL, false);
|
NULL, false);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue