Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_routes does not return default route #8

Closed
ghost opened this issue Jun 24, 2013 · 3 comments
Closed

get_routes does not return default route #8

ghost opened this issue Jun 24, 2013 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 24, 2013

Function "get_routes" from iproute.py does not return default route, which is quote important route and should be returned.

It is caused by condition "... if l[0] == 'RTA_DST'] ..." on line 260. Default route does not have RTA_DST attribute.

Please remove this condition.

Thanks
Ondrej

@svinota
Copy link
Owner

svinota commented Jun 25, 2013

Fixed in d5d9ff3 . Let me know, if it works for you and I can close the bug.

@svinota
Copy link
Owner

svinota commented Jun 26, 2013

Fix included in 0.1.10: https://github.com/svinota/pyroute2/tree/0.1.10

@svinota svinota closed this as completed Jun 26, 2013
@ghost
Copy link
Author

ghost commented Jun 26, 2013

I have tested 0.1.10 and everything works as expected. Thx.

svinota added a commit that referenced this issue Nov 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant