]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Update DR when local priority changes
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:39:41 +0000 (15:39 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Jul 2019 13:44:05 +0000 (15:44 +0200)
When priority is reconfigured locally, we need to trigger DR election.

proto/ospf/iface.c

index feff0f436f6b0dcb8a6f5659b4f833f423d24f7e..5bdb44460d1d7bcb2fc254efb2a919dfedca7c8a 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);
   }