ktbyers / pynet

Python for Network Engineers
Apache License 2.0
584 stars 513 forks source link

Update exercise3.py #20

Closed Hartmann-J closed 5 years ago

Hartmann-J commented 5 years ago

Hello! I stared doing your lessons a few days ago. I had issues with the the .sort() function since I couldn't figure out how to sort via the IP Addresses. With the "show_arp.sort()" function it puts the "\n" lines in front. Couldn't find a easy solution besides manually selecting the first 3 rows with IP Addresses [14:17]

ktbyers commented 5 years ago

@Hartmann-J I am not understanding what you are fixing here? The exercise asks for the first three ARP entries?

Hartmann-J commented 5 years ago

Hello - sorry for the confusion. I think I found my error - when i copied the "show_arp.txt" from Github it added an empty line between all my entries so i had the issue when using the .sort() method that the empty lines were in front and got picked. When I redownloaded the show_arp.txt file it now works fine - thanks for your help :)