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

Method get_progress

actions/scanning.py:1325–1330  ·  view source on GitHub ↗

Returns the progress of the scanning process.

(self)

Source from the content-addressed store, hash-verified

1323 if not lan or lan not in netifaces.interfaces() \
1324 or self._is_cellular_uplink(lan) \
1325 or netifaces.AF_INET not in netifaces.ifaddresses(lan):
1326 self.logger.warning(
1327 f"Only the cellular uplink ({default_gateway}) is online — "
1328 "skipping the LAN scan (set cellular_allow_scan to override)")
1329 return None
1330 self.arp_scan_interface = lan
1331 default_gateway = lan
1332 iface = netifaces.ifaddresses(default_gateway)[netifaces.AF_INET][0]
1333 ip_address = iface['addr']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected