]> git.ipfire.org Git - network.git/commit
route: apply static routes on startup and restart
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Fri, 2 Jun 2017 06:30:35 +0000 (08:30 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jun 2017 07:57:03 +0000 (08:57 +0100)
commit7470f3977ab2c4a5279c00a26c41a8df8263366a
tree72507820a43222c5be4a922311999291362e060b
parentf356ea0b15de29ba5515f3faac5e06b90af8a8e1
route: apply static routes on startup and restart

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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.route
src/functions/functions.routing