ftao / python-ifcfg

Python cross-platform network interface discovery (ifconfig/ipconfig/ip)
BSD 3-Clause "New" or "Revised" License
55 stars 37 forks source link

Do not include @ in parsed interface name and add a test for it. #36

Closed ubnt-algardas closed 5 years ago

ubnt-algardas commented 5 years ago

Oops, looks like I missed one thing in #35: ip a returns interface name like eth-usb-6@eth-usb, but it cannot be used as is because the part after @ denotes the parent. Updated the code to match name until the @ and added a test.