mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
Merge pull request #5156 from donaldsharp/soft_reconfig_the_peer
bgpd: Soft reconfig-in should find the right bgp_path_info
This commit is contained in:
commit
e9f66ba9af
@ -3934,12 +3934,16 @@ static void bgp_soft_reconfig_table(struct peer *peer, afi_t afi, safi_t safi,
|
|||||||
if (ain->peer != peer)
|
if (ain->peer != peer)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
struct bgp_path_info *pi =
|
struct bgp_path_info *pi;
|
||||||
bgp_node_get_bgp_path_info(rn);
|
|
||||||
uint32_t num_labels = 0;
|
uint32_t num_labels = 0;
|
||||||
mpls_label_t *label_pnt = NULL;
|
mpls_label_t *label_pnt = NULL;
|
||||||
struct bgp_route_evpn evpn;
|
struct bgp_route_evpn evpn;
|
||||||
|
|
||||||
|
for (pi = bgp_node_get_bgp_path_info(rn); pi;
|
||||||
|
pi = pi->next)
|
||||||
|
if (pi->peer == peer)
|
||||||
|
break;
|
||||||
|
|
||||||
if (pi && pi->extra)
|
if (pi && pi->extra)
|
||||||
num_labels = pi->extra->num_labels;
|
num_labels = pi->extra->num_labels;
|
||||||
if (num_labels)
|
if (num_labels)
|
||||||
|
Loading…
Reference in New Issue
Block a user