-
-
Save rodfersou/f48c21519dfde1063952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nettools import NetworkElement | |
with NetworkElement('171.0.2.45') as ne: | |
for route in ne.routing_table: | |
print '%15s -> %s' % (route.name, route.ipaddr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment