tikky
January 28, 2017, 10:15pm
1
I made a script to add some static routes. The only problem is that it’s quite slow. It takes about two minutes to add 1000 static routes.
Is there some faster way to add static routes other than /ip route add …? Is the API faster? Other suggestions?
savage
January 28, 2017, 11:19pm
2
The API is apparently faster…
In my testing with heavy usage via CLI, vs heavy usage via API, I’ve pretty much found that both was unsuitable
They are both rather slow unfortunately.
tikky:
I made a script to add some static routes. The only problem is that it’s quite slow. It takes about two minutes to add 1000 static routes.
Is there some faster way to add static routes other than /ip route add …? Is the API faster? Other suggestions?
For each route your add the router recalc the routing table…
Hardware used?
My border router (CCR1036-12G-4S) for import 621.258 route from BGP and ~100 internal routes puts near 3 Minutes
tikky
January 29, 2017, 12:57pm
4
So there is no way of doing bulk upload of static routes or any known way of doing it faster?
For curiosity, why you need that?
The static routes are from one list downloaded from web?
tikky
January 29, 2017, 8:26pm
6
It’s for a custom routing project I’m working on. Why do you ask? Do you know of another way of uploading routes fast?
Using iBGP and one machine everytime up and sync the router with that machine when needed.
tikky
January 30, 2017, 7:39am
8
Thanks, I’ll try that. It’s more than a little roundabout way to get done what I want, but if there is no other option, I’ll see if I can make it work as intended.