Bugzilla – Bug 702
Make global routing robust to link/device events
Last modified: 2010-05-24 13:55:07 EDT
Implement Ipv4GlobalRouting::Notify* methods
Now that we have these methods, we can make global routing robust to these events. Presently, it is documented that the user must call RecomputeRoutingTables() when topology changes. See examples/dynamic-global-routing.cc. This could be automated by implementing the Notify methods.
Also, remove NS_DEPRECATED methods in global-route-manager.h
Created attachment 867 [details]
proposed patch to fix
This patch introduces a new attribute (default false, to keep legacy behavior for legacy scripts) that will cause any Ipv4GlobalRouting object that receives a Notify* event from the IP subsystem to recompute global routes.
The example file examples/routing/dynamic-global-routing.cc has been adjusted to turn on this attribute to "true", and test its behavior.
Users can also manually call RecomputeRoutingTables() as before.