-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add function to get the default route #716
Comments
Are you interested in the default gateway? |
I'm actually interested in the device from which default traffic will be default via 192.168.0.1 dev eth1 proto static On 12 December 2015 at 12:24, giampaolo [email protected] wrote:
|
Closing as duplicate of #667. In the meantime you might want to take a look at netifaces lib which provides info about the gateways: https://pypi.python.org/pypi/netifaces |
Is it really a dupe if I want the device and not the IP? On 14 December 2015 at 19:01, giampaolo [email protected] wrote:
|
Please try to describe what you would expect in terms of API.
...on my machine:
I'm asking this because it is not entirely clear to me how network gateways work. |
It's really missing. |
a wrapper around the command
ip route
The text was updated successfully, but these errors were encountered: