mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 04:54:44 +00:00
Merge pull request #16851 from Shbinging/fix_timer_throttle_spf
ospfd: reset spf_hold_multiplier when current SPF delay state is changed
This commit is contained in:
commit
849df49bbd
@ -2291,6 +2291,10 @@ static int ospf_timers_spf_set(struct vty *vty, unsigned int delay,
|
|||||||
{
|
{
|
||||||
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
|
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
|
||||||
|
|
||||||
|
if (ospf->spf_delay != delay || ospf->spf_holdtime != hold ||
|
||||||
|
ospf->spf_max_holdtime != max)
|
||||||
|
ospf->spf_hold_multiplier = 1;
|
||||||
|
|
||||||
ospf->spf_delay = delay;
|
ospf->spf_delay = delay;
|
||||||
ospf->spf_holdtime = hold;
|
ospf->spf_holdtime = hold;
|
||||||
ospf->spf_max_holdtime = max;
|
ospf->spf_max_holdtime = max;
|
||||||
|
Loading…
Reference in New Issue
Block a user