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

Method set_ethernet_scan_enabled

multi_interface.py:188–195  ·  view source on GitHub ↗

Enable or disable scanning over Ethernet.

(self, enabled: bool)

Source from the content-addressed store, hash-verified

186 def get_ethernet_status(self) -> Dict:
187 """Get current Ethernet interface status."""
188 with self._lock:
189 active_interface = None
190 for iface in self.ethernet_interfaces.values():
191 # Only consider interfaces with valid (non-link-local) IPs
192 if (iface.get('connected') and
193 iface.get('has_carrier') and
194 iface.get('ip_address') and
195 not iface.get('is_link_local')):
196 active_interface = iface
197 break
198

Callers 1

Calls 3

get_ethernet_statusMethod · 0.95
save_configMethod · 0.80

Tested by

no test coverage detected