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

Function gather_all_network_interfaces

wifi_interfaces.py:408–413  ·  view source on GitHub ↗

Gather both WiFi and Ethernet interfaces.

(wifi_default: str = 'wlan0', ethernet_default: str = 'eth0')

Source from the content-addressed store, hash-verified

406
407
408def gather_all_network_interfaces(wifi_default: str = 'wlan0', ethernet_default: str = 'eth0') -> Dict[str, List[Dict]]:
409 """Gather both WiFi and Ethernet interfaces."""
410 return {
411 'wifi': gather_wifi_interfaces(wifi_default),
412 'ethernet': gather_ethernet_interfaces(ethernet_default),
413 }

Callers

nothing calls this directly

Calls 2

gather_wifi_interfacesFunction · 0.85

Tested by

no test coverage detected