Peter Saveliev

Results 285 comments of Peter Saveliev

Sure thing, thanks.

```python routes = netns.route('dump', dst=destination) for route in routes: print(route) hops = route.get('multipath') for hop in hops: print(hop) print(hop.get('gateway')) ``` Regarding `get fibmatch` — thanks for the hint, I'll take...

Yep, 'cause `get` never returns the original route record from the table, but instead a routing info that actually will be used for one packet — it's always one nexthop....

Any hope there will be a fix?

The root cause found, the kernel doesn't send route updates upon removing dependent routes, so IPDB has to calculate it. Just as upon an interface removal. Ok, not good but...

> the main issue is not with the interface removal but IP address removal. Yep. I just told about the interface removal, since already tried to find a proper fix,...

An attempt to mitigate the issue. For now only IPv4 only, the same issue with IPv6 routes still not fixed. And this fix may cause siginficant slowdown on huge numbers...

@csernazs np, thanks for keeping an eye on the issue! That's not Python gc, but own IPDB's gc. And yep, it is directly related to the issue. Actually, when IPDB...