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

Function _poe_class_num

network_diagnostics.py:302–307  ·  view source on GitHub ↗

Pull the numeric class out of an lldpctl class string ('class 4' -> 4).

(class_str)

Source from the content-addressed store, hash-verified

300 for name in ('speedtest-cli', 'speedtest'):
301 if _have(name):
302 return 'cli', name
303 return None, None
304
305
306def _speedtest_error(res, meta):
307 """Turn a speedtest client failure into something actionable. 'Cannot
308 retrieve speedtest configuration / urlopen error timed out' means it could
309 not reach speedtest.net at all — when we bound the socket to an interface
310 that is the prime suspect, otherwise it is plain no-internet/blocked."""

Callers 1

_parse_poeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected