mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:23:41 +00:00
Merge pull request #9225 from idryzhov/bgp-damp-list-readd
bgpd: fix missing list add in dampening
This commit is contained in:
commit
cdb68e8fcf
@ -342,7 +342,14 @@ int bgp_damp_withdraw(struct bgp_path_info *path, struct bgp_dest *dest,
|
|||||||
(bgp_path_info_extra_get(path))->damp_info = bdi;
|
(bgp_path_info_extra_get(path))->damp_info = bdi;
|
||||||
bgp_no_reuse_list_add(bdi, bdc);
|
bgp_no_reuse_list_add(bdi, bdc);
|
||||||
} else {
|
} else {
|
||||||
bgp_damp_info_claim(bdi, bdc);
|
if (bdi->config != bdc) {
|
||||||
|
bgp_damp_info_claim(bdi, bdc);
|
||||||
|
if (bdi->index == BGP_DAMP_NO_REUSE_LIST_INDEX)
|
||||||
|
bgp_reuselist_add(&bdc->no_reuse_list, bdi);
|
||||||
|
else
|
||||||
|
bgp_reuselist_add(&bdc->reuse_list[bdi->index],
|
||||||
|
bdi);
|
||||||
|
}
|
||||||
last_penalty = bdi->penalty;
|
last_penalty = bdi->penalty;
|
||||||
|
|
||||||
/* 1. Set t-diff = t-now - t-updated. */
|
/* 1. Set t-diff = t-now - t-updated. */
|
||||||
|
Loading…
Reference in New Issue
Block a user