Created
July 18, 2022 23:14
-
-
Save cyrillkuettel/ce24b6565e33b1c1bc65edf5b32d6be5 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