mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 22:26:14 +00:00
Merge pull request #16736 from mjstapp/fix_bgp_evpn_if_clause
bgpd: fix duplicated test clause
This commit is contained in:
commit
40a47a92f4
@ -2124,22 +2124,18 @@ static void evpn_zebra_reinstall_best_route(struct bgp *bgp,
|
||||
}
|
||||
}
|
||||
|
||||
if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP
|
||||
&& (curr_select->sub_type == BGP_ROUTE_IMPORTED ||
|
||||
bgp_evpn_attr_is_sync(curr_select->attr)))
|
||||
if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP &&
|
||||
(curr_select->sub_type == BGP_ROUTE_IMPORTED ||
|
||||
bgp_evpn_attr_is_sync(curr_select->attr))) {
|
||||
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
|
||||
evpn_zebra_install(bgp, vpn,
|
||||
(const struct prefix_evpn *)
|
||||
bgp_dest_get_prefix(
|
||||
dest),
|
||||
curr_select);
|
||||
else
|
||||
bgp_zebra_route_install(dest, curr_select, bgp,
|
||||
true, vpn, false);
|
||||
}
|
||||
if (curr_select && curr_select->type == ZEBRA_ROUTE_BGP &&
|
||||
(curr_select->sub_type == BGP_ROUTE_IMPORTED ||
|
||||
bgp_evpn_attr_is_sync(curr_select->attr))) {
|
||||
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS))
|
||||
evpn_zebra_install(bgp, vpn,
|
||||
(const struct prefix_evpn *)
|
||||
bgp_dest_get_prefix(dest),
|
||||
curr_select);
|
||||
else
|
||||
bgp_zebra_route_install(dest, curr_select, bgp, true,
|
||||
vpn, false);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user