(paths: List[str], limit: int = 5)
| 2191 | |
| 2192 | |
| 2193 | def _ni_rank(v): |
| 2194 | v = (v or 'unknown') |
| 2195 | if v in _NI_CLEAN: |
| 2196 | return 0 |
| 2197 | if v in _NI_CRITICAL: |
| 2198 | return 2 |
| 2199 | return 1 |
| 2200 | |
| 2201 | |
| 2202 | def _net_integrity_check_once(): |
| 2203 | """Run the fast core checks (DNS/ARP/DHCP + RA-Guard posture) plus, when extended |
| 2204 | monitoring is on, the next round-robin batch of the passive Watch scanners. Update |
| 2205 | per-check state and alert on any check that worsens. Returns the overall verdict.""" |
| 2206 | import network_diagnostics as nd |
no test coverage detected