mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 09:52:27 +00:00
bgpd: Continue processing rpki nodes
We are prematurely stopping processing of bgp_path_info's when bgp_update returns a -1. The only place that this happens when we cross some prefix limit. But we still need to continiue processing other nodes in the list too. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
35a1e798f8
commit
73261b4759
@ -421,7 +421,6 @@ static void revalidate_bgp_node(struct bgp_dest *bgp_dest, afi_t afi,
|
|||||||
struct bgp_adj_in *ain;
|
struct bgp_adj_in *ain;
|
||||||
|
|
||||||
for (ain = bgp_dest->adj_in; ain; ain = ain->next) {
|
for (ain = bgp_dest->adj_in; ain; ain = ain->next) {
|
||||||
int ret;
|
|
||||||
struct bgp_path_info *path =
|
struct bgp_path_info *path =
|
||||||
bgp_dest_get_bgp_path_info(bgp_dest);
|
bgp_dest_get_bgp_path_info(bgp_dest);
|
||||||
mpls_label_t *label = NULL;
|
mpls_label_t *label = NULL;
|
||||||
@ -431,13 +430,10 @@ static void revalidate_bgp_node(struct bgp_dest *bgp_dest, afi_t afi,
|
|||||||
label = path->extra->label;
|
label = path->extra->label;
|
||||||
num_labels = path->extra->num_labels;
|
num_labels = path->extra->num_labels;
|
||||||
}
|
}
|
||||||
ret = bgp_update(ain->peer, bgp_dest_get_prefix(bgp_dest),
|
(void)bgp_update(ain->peer, bgp_dest_get_prefix(bgp_dest),
|
||||||
ain->addpath_rx_id, ain->attr, afi, safi,
|
ain->addpath_rx_id, ain->attr, afi, safi,
|
||||||
ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, NULL, label,
|
ZEBRA_ROUTE_BGP, BGP_ROUTE_NORMAL, NULL, label,
|
||||||
num_labels, 1, NULL);
|
num_labels, 1, NULL);
|
||||||
|
|
||||||
if (ret < 0)
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user