>>> pyiface.Interface("eth0").name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyiface/iface.py", line 174, in __init__
self._name = self.name
File "pyiface/iface.py", line 226, in name
ifr.data.ifr_ifindex = self._index
TypeError: an integer is required
>>>
>>> pyiface.Interface(name="eth0") # use named parameter
<pyiface.iface.Interface object at 0x7f510151dc50>
>>> pyiface.Interface(name="eth0").name
'eth0'
README has a little documentation glitch:
"
Get a specific interface by name
" but