Check if any Ethernet interface is available and connected.
()
| 401 | |
| 402 | |
| 403 | def is_ethernet_available() -> bool: |
| 404 | """Check if any Ethernet interface is available and connected.""" |
| 405 | return get_active_ethernet_interface() is not None |
| 406 | |
| 407 | |
| 408 | def gather_all_network_interfaces(wifi_default: str = 'wlan0', ethernet_default: str = 'eth0') -> Dict[str, List[Dict]]: |
no test coverage detected