]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Update DR when local priority changes
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 10 Jul 2019 16:40:15 +0000 (18:40 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 10 Jul 2019 16:40:15 +0000 (18:40 +0200)
When priority is reconfigured locally, we need to trigger DR election.

proto/ospf/iface.c

index 09b43d9fabccd38ccfd1fe685f60aa53cf7345b1..adcb83571b068d9f0815ae5312c092da96a57079 100644 (file)
@@ -865,6 +865,7 @@ ospf_iface_reconfigure(struct ospf_iface *ifa, struct ospf_iface_patt *new)
               ifname, ifa->priority, new->priority);
 
     ifa->priority = new->priority;
+    ospf_iface_sm(ifa, ISM_NEICH);
     ospf_notify_link_lsa(ifa);
   }