diff options
| author | Russ White <russ@riw.us> | 2024-09-24 10:03:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 10:03:05 -0400 |
| commit | 849df49bbd94988dfc76a386a2f6270d3763d45d (patch) | |
| tree | 397dd724750742b35489ca3ab73a0d9978cda34b | |
| parent | 1a2eaba14cf2fdd74c9e607b23c0911f44b88060 (diff) | |
| parent | 4a26e534954401114f35872a1092e72d54cb0e91 (diff) | |
Merge pull request #16851 from Shbinging/fix_timer_throttle_spf
ospfd: reset spf_hold_multiplier when current SPF delay state is changed
| -rw-r--r-- | ospfd/ospf_vty.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 7ae4ea04cb..68d79aef93 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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; |
