ospfd: Make sure all external routes are updated.
commit274d3f090df91fc5f8d4f26a2823634efa4af461
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Wed, 14 Apr 2010 09:05:27 +0000 (14 11:05 +0200)
committerGreg Troxel <gdt@ir.bbn.com>
Sun, 18 Apr 2010 18:35:36 +0000 (18 14:35 -0400)
treebcdbc9bc1eea38e2441d0c53152325e41940b122
parent515b9424d4106ff5ccef4f18030a3ca69d38a178
ospfd: Make sure all external routes are updated.

Roman Hoog Antink <rha@open.ch> reports:

When adding a connected route (using vtysh, without restart) to the
redistribution access list of ospfd, while static routes already exist,
the update timer ospf_distribute_list_update_timer() is being run for
static routes only. That way, the connected route never appears in the
OSPF database, until quagga is completely restarted.

The update timer for connected routes is cancelled in
ospfd/ospfd_zebra.c:ospf_distribute_list_update():976, were a new timer
is scheduled for static routes, caused by the loop in ospf_filter_update().

 * ospf_zebra.c: (ospf_distribute_list_update_timer) make it
   refresh all external routes. This fixes the problem
   reported by Roman.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
ospfd/ospf_zebra.c