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 }
187
188 def set_ethernet_scan_enabled(self, enabled: bool) -> Dict:
189 """Enable or disable scanning over Ethernet."""
190 self.shared_data.config['ethernet_scan_enabled'] = bool(enabled)
191 self.shared_data.save_config()
192
193 # Refresh to apply new setting
194 self.refresh_ethernet_interfaces()
195 return self.get_ethernet_status()
196
197 def get_preferred_scan_interface(self) -> Optional[Dict]:
198 """

Callers 1

Calls 3

get_ethernet_statusMethod · 0.95
save_configMethod · 0.80

Tested by

no test coverage detected