diff options
author | Christian Franke <chris@opensourcerouting.org> | 2012-12-13 16:10:05 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2013-11-20 10:35:59 +0100 |
commit | 7d4aa1d57d54a57aae78e6b12cf4524e2c43a514 (patch) | |
tree | f6c80b75e1f258a9bc3fa7a452807a5762ca7465 /ospf6d | |
parent | ba960d5ae43e49991ed70fbe9ffa2e4567437a31 (diff) | |
download | quagga-7d4aa1d57d54a57aae78e6b12cf4524e2c43a514.tar.bz2 quagga-7d4aa1d57d54a57aae78e6b12cf4524e2c43a514.tar.xz |
ospf6d: don't run DR election early on "ipv6 ospf6 priority"
On changing the router priority, DR election should only be run when it
was completed at least once before.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_interface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 111b929a..c692f2c7 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1333,7 +1333,10 @@ DEFUN (ipv6_ospf6_priority, oi->priority = strtol (argv[0], NULL, 10); - if (oi->area) + if (oi->area && + (oi->state == OSPF6_INTERFACE_DROTHER || + oi->state == OSPF6_INTERFACE_BDR || + oi->state == OSPF6_INTERFACE_DR)) ospf6_interface_state_change (dr_election (oi), oi); return CMD_SUCCESS; |