mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 06:39:35 +00:00
pimd: allow a bsr with higher priority to take over
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
This commit is contained in:
parent
8fbd88c5a7
commit
4e74183d0f
@ -1650,8 +1650,18 @@ static void pim_cand_bsr_pending_expire(struct event *t)
|
|||||||
struct bsm_scope *scope = EVENT_ARG(t);
|
struct bsm_scope *scope = EVENT_ARG(t);
|
||||||
|
|
||||||
assertf(scope->state == BSR_PENDING, "state=%d", scope->state);
|
assertf(scope->state == BSR_PENDING, "state=%d", scope->state);
|
||||||
assertf(pim_addr_is_any(scope->current_bsr), "current_bsr=%pPA",
|
|
||||||
&scope->current_bsr);
|
if (!pim_addr_is_any(scope->current_bsr)) {
|
||||||
|
assertf(scope->cand_bsr_prio >= scope->current_bsr_prio,
|
||||||
|
"cand_bsr %pPA prio %u is less than current_bsr %pPA prio %u",
|
||||||
|
&scope->bsr_addrsel.run_addr, scope->current_bsr_prio, &scope->current_bsr,
|
||||||
|
scope->cand_bsr_prio);
|
||||||
|
|
||||||
|
if (scope->cand_bsr_prio == scope->current_bsr_prio)
|
||||||
|
assertf(pim_addr_cmp(scope->bsr_addrsel.run_addr, scope->current_bsr) > 0,
|
||||||
|
"cand_bsr %pPA < current_bsr %pPA", &scope->bsr_addrsel.run_addr,
|
||||||
|
&scope->current_bsr);
|
||||||
|
}
|
||||||
|
|
||||||
if (PIM_DEBUG_BSM)
|
if (PIM_DEBUG_BSM)
|
||||||
zlog_debug("Elected BSR, wait expired without preferable BSMs");
|
zlog_debug("Elected BSR, wait expired without preferable BSMs");
|
||||||
|
Loading…
Reference in New Issue
Block a user