Skip to content

Commit

Permalink
ospfd: reset spf_hold_multiplier when current SPF delay state is changed
Browse files Browse the repository at this point in the history
Signed-off-by: Shbinging <[email protected]>
  • Loading branch information
Shbinging committed Sep 18, 2024
1 parent da96ad0 commit e8d1ee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8d1ee2

Please sign in to comment.