Skip to content

turrishw: Allow fetching only certain types of interfaces

Martin Matějek requested to merge feature/allow-fitering-by-interface-type into master

For example:

get_ifaces(filter_types=["eth"]) -> will return only ethernet interfaces

get_ifaces(filter_types=["wifi", "wwan"]) -> will return Wi-Fi and QMI interfaces only

get_ifaces(filter_types=[]) or just get_ifaces() will return all interfaces.

Edited by Martin Matějek

Merge request reports