Are there network hooks to run script after interface is taken up?


#1

Hello

Using normal configuration option of routes will take to long to boot up.
I have 105 static routes and ubnt edge router needs 5min to boot with this routes using commands

set protocols static route 10.24.150.0/24 next-hop 10.10.2.1

Using a script
/config/scripts/post-config.d/setup_routing_tables
with commands

route add -net 10.24.150.0 netmask 255.255.255.0 gw 10.10.2.1

boot up time will have 50sec. as without any static route BUT the problem is if in interface goes down the routes are lost.
Question: Are there network hooks to run a script after an interface is up so I can add routes per interface in a script?

Have nothing found in the forum.

Thanks for any hint!!

BTW: Very nice os for routers!! I love it!!