]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: force recalculate on interface_up
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 25 Apr 2024 10:18:08 +0000 (12:18 +0200)
committerton31337 <3352707+ton31337@users.noreply.github.com>
Sat, 4 May 2024 14:07:55 +0000 (14:07 +0000)
interface_up also handles changes to the interface type, i.e. broadcast
to ptp to ptmp.  Connected routes for these are different and must be
readvertised, which is done in ospf6_interface_recalculate_cost() - but
only if the cost changed.  Use the force variant here.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit d7f54c4d5692c85d0f6a5bb384b156f252b92e20)

ospf6d/ospf6_interface.c

index c9ba5a81f7e2990ecbc0de7e5de0aa772889565e..8549af06ecf34c17d18344db9082d4e904d75332 100644 (file)
@@ -792,8 +792,8 @@ void interface_up(struct event *thread)
                return;
        }
 
-       /* Recompute cost */
-       ospf6_interface_recalculate_cost(oi);
+       /* Recompute cost & update connected LSAs */
+       ospf6_interface_force_recalculate_cost(oi);
 
        /* if already enabled, do nothing */
        if (oi->state > OSPF6_INTERFACE_DOWN) {