]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix default-metric change if external LSAs already sent
authorAlexander Chernavin <achernavin@netgate.com>
Wed, 19 Jul 2023 12:03:46 +0000 (12:03 +0000)
committerAlexander Chernavin <achernavin@netgate.com>
Wed, 19 Jul 2023 13:12:40 +0000 (13:12 +0000)
commitb1f759133b6b909dde73f474f3411fc569fff16d
tree83d584f177ce11c455ae5f1817b3778f8af35d2b
parent58560337776556c1a2d8ed3578f6b51e4621fe22
ospfd: fix default-metric change if external LSAs already sent

Currently, when redistribution of routes was configured, external LSAs
were already advertised to peers, and then default-metric is changed,
external LSAs refresh will not occur. In other words, the peers will not
receive the refreshed external LSAs with the new metric.

With this fix, changing default-metric will cause external LSAs to be
refreshed and flooded.

There is a similar task to refresh external LSAs when NSSA settings are
changed. And there is a function that accomplishes it -
ospf_schedule_asbr_nssa_redist_update(). Since the function does the
general work of refreshing external LSAs and is not specific to NSSA
settings, the idea is to give it a more general name and call it when
default-metric changes in order to fix the problem.

Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
ospfd/ospf_asbr.c
ospfd/ospf_asbr.h
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h