You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems Unnamed/non-netdev interface breaks the parsing, if I send to to the parse a file with those lines removed then the iw dev output gets parsed fine.
I tried searching using the mac address 60:a5:e2:59:de:74 in my ip a output but can't find a device that has it, so I am not sure where its coming from.
Also thanks for sharing this parser ❤️
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I don't have such unnamed device, so the parser doesn't handle it.
The thing is we're currently expecting Interface <name> at the start of each block and the name is used as a dictionary key. Since the Unnamed/non-netdev device still contains a MAC address, that could be used as a key instead, but I'm not sure if multiple devices can have the same MAC or return something like 00:00:00:00:00:00 when it's unknown.
The logic for handling the header in iw_device_parser.py#L37 could be changed to generate a list of dicts containing unknown or duplicate devices, or the unknown devices could be skipped entirely.
I'll take another look at the source of iw to see which values are always present and will see what I can do.
Hey, when I run
I get:
The otuput of
iw dev
is this:It seems
Unnamed/non-netdev interface
breaks the parsing, if I send to to the parse a file with those lines removed then the iw dev output gets parsed fine.I tried searching using the mac address
60:a5:e2:59:de:74
in myip a
output but can't find a device that has it, so I am not sure where its coming from.Also thanks for sharing this parser ❤️
The text was updated successfully, but these errors were encountered: