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

proto/ospf/iface.c

index f5c691993014ff1896516bb9f55ceacc80ffadcc..6e7e498f27400066ce54bdaa478f3ad563241b0b 100644 (file)
@@ -880,6 +880,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);
   }