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)
| 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 | |
| 285 | def _speedtest_client(): |