]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix ospf default route wrongly sent back
authorFrancois Dumontet <francois.dumontet@6wind.com>
Fri, 25 Mar 2022 14:40:36 +0000 (15:40 +0100)
committerFrancois Dumontet <francois.dumontet@6wind.com>
Fri, 25 Mar 2022 14:40:46 +0000 (15:40 +0100)
commit5e43330e5c68e326d41f7f8e856d9a2d07892d22
tree34b580b05905a524be96a0a1cb4cdf5d3d9b6103
parentf1bfeadcc19d995f99bc692db2ea2cb376ef853b
ospfd: fix ospf default route wrongly sent back

That commit aim is to fix an invalid behavior when
default-information is activated on ospf router without always option.

Consider an ASBR with:
-one default route coming from ospf,
-and another default route coming from another deaemon (such BGP or static).

When the daemon bgp stops advertising its default route,
-ospf continues to advertise its previous default route (with aging 0),
-this may create default routing loops.

Expected behavior: is to update the removed external default route with
MAXAGING value.
Updating with MAXAGING value will notify the fact the route is currently
invalid. A later removal from ospf external LSA database will be made.

Analysis: all default routes have their type overwritten by a
DEFAULT_ROUTE type. Thus all default routes whatever its origin (ospf,
bgp, static...) is treated in a same way. But this is not pertinent for
ospf originated default routes.

Fix: avoid overwiting of route type when default route is ospf type.

Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
ospfd/ospf_zebra.c