summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-11 15:39:41 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-11 15:44:05 +0200
commit78c05cc159a51ecbbf6b15eda6f97b2b3c9e7187 (patch)
treecb8aa247c2d4eac323c9704d5c348c4211a29fb5
parenta92aee467e89473a9d07fa177794f5559f852b59 (diff)
OSPF: Update DR when local priority changes
When priority is reconfigured locally, we need to trigger DR election.
-rw-r--r--proto/ospf/iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index feff0f43..5bdb4446 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -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);
}