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

Function _first_key

network_diagnostics.py:276–282  ·  view source on GitHub ↗

lldpctl json nests some objects under a single dynamic key (e.g. the chassis name). Return (key, value) of the first item, or (None, {}).

(d)

Source from the content-addressed store, hash-verified

274 s.connect(dst)
275 return True
276 except PermissionError:
277 unknown = True
278 except OSError:
279 pass
280 finally:
281 s.close()
282 return None if unknown else False
283
284
285def _speedtest_client():

Callers 1

_parse_lldp_ifaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected