MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / is_ethernet_available

Function is_ethernet_available

wifi_interfaces.py:403–405  ·  view source on GitHub ↗

Check if any Ethernet interface is available and connected.

()

Source from the content-addressed store, hash-verified

401
402
403def 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
408def gather_all_network_interfaces(wifi_default: str = 'wlan0', ethernet_default: str = 'eth0') -> Dict[str, List[Dict]]:

Callers 3

get_statusFunction · 0.90
get_current_statusFunction · 0.90
get_dashboard_quickFunction · 0.90

Calls 1

Tested by

no test coverage detected