Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cyrillkuettel/ce24b6565e33b1c1bc65edf5b32d6be5 to your computer and use it in GitHub Desktop.
Save cyrillkuettel/ce24b6565e33b1c1bc65edf5b32d6be5 to your computer and use it in GitHub Desktop.
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