Return all interfaces that work
()
| 399 | |
| 400 | |
| 401 | def get_working_ifaces(): |
| 402 | # type: () -> List[NetworkInterface] |
| 403 | """Return all interfaces that work""" |
| 404 | return [iface for iface in conf.ifaces.values() if iface.is_valid()] |
| 405 | |
| 406 | |
| 407 | def dev_from_networkname(network_name): |