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

Method refresh_ethernet_interfaces

multi_interface.py:106–111  ·  view source on GitHub ↗

Probe Ethernet interfaces and update cached state.

(self)

Source from the content-addressed store, hash-verified

104 return discovered
105
106 def refresh_ethernet_interfaces(self) -> List[Dict]:
107 """Probe Ethernet interfaces and update cached state."""
108 default_eth = self.shared_data.config.get('ethernet_default_interface', 'eth0')
109 discovered = gather_ethernet_interfaces(default_eth)
110 self.sync_ethernet_interfaces(discovered)
111 return discovered
112
113 def sync_ethernet_interfaces(self, interfaces: List[Dict]):
114 """Sync Ethernet interface metadata."""

Callers 5

refresh_from_systemMethod · 0.95
get_ethernet_statusFunction · 0.80

Calls 3

getMethod · 0.45

Tested by

no test coverage detected