Using pyroute2==0.9.5 trying to add multiple routes:
with ndb.begin() as tx:
for p in px.getCidrs():
tx.push(ndb.routes.create(dst=p, gateway="192.168.191.1", table=101))
I end up this loop adding like ~1000 routes in 12 minutes (I see them hitting ip route show table 101 despite transaction is not yet committed).
I need to set up ~100 000 routes, thus it might take ~20 hours, which is unacceptable.
Is it something I miss in config/code or it's just intended to be this slow?
Using
pyroute2==0.9.5trying to add multiple routes:I end up this loop adding like ~1000 routes in 12 minutes (I see them hitting
ip route show table 101despite transaction is not yet committed).I need to set up ~100 000 routes, thus it might take ~20 hours, which is unacceptable.
Is it something I miss in config/code or it's just intended to be this slow?