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:
Russ White 2024-09-24 10:03:05 -04:00 committed by GitHub
commit 849df49bbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2291,6 +2291,10 @@ static int ospf_timers_spf_set(struct vty *vty, unsigned int delay,
{
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_holdtime = hold;
ospf->spf_max_holdtime = max;