[2/2] route: apply static routes on startup and restart

Message ID 1496385035-3913-2-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show


Jonatan Schlag June 2, 2017, 4:30 p.m. UTC
The static routes can only be applied when the network has a valid layer 3  connectivity.
So it is not useful to have a route_init which is called before we have any layer 3  connectivity.
We now call the route_apply every time we set new routes for a zone.
We do this every time we get a new layer 3  connectivity so all routes are applied correctly.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
 src/functions/functions.route   | 7 -------
 src/functions/functions.routing | 3 +++
 2 files changed, 3 insertions(+), 7 deletions(-)