ospfd: reset spf_hold_multiplier when current SPF delay state is changed

Signed-off-by: Shbinging <bingshui@smail.nju.edu.cn>
This commit is contained in:
Shbinging 2024-09-18 12:23:23 +08:00
parent da96ad08cd
commit 4a26e53495

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;