{# SPDX-License-Identifier: AGPL-3.0-only Copyright 2026 Mouad Lyaazale. Additional terms (author attribution, names): see NOTICE. -#}
Read-only assessment of the switch fleet against the {{ project }} specification (vendor-neutral security controls, conformance Levels 1 and 2).
Conformance: {% for lvl, n in fleet.levels.items() %}{{ n }} switch{{ "es" if n > 1 }} at Level {{ lvl }}{{ ", " if not loop.last }}{% endfor %}. A switch reaches Level N only when every control of Levels 1 to N passes.
| Control | Level | Switches failing | ISO 27001:2022 |
|---|---|---|---|
| {{ t.control.id }} {{ t.control.title }} |
{{ t.control.level }} | {{ t.count }} / {{ rows|length }} {{ t.devices|join(", ") }} |
{% for m in t.control.mappings.iso27001_2022 or [] %}{{ m }}{% endfor %} |
| Control | {% for r in rows %}{{ r.device.id }} | {% endfor %}
|---|---|
| {{ c.id }} L{{ c.level }} {{ c.title }} |
{% for r in rows %}{% set v = fleet.verdicts[r.device.id].get(c.id, "not_applicable") %}
{{ symbol[v] }} | {% endfor %}
✓ pass · ✗ fail · ? unknown (evidence insufficient; never guessed) · – not applicable
| Address | {{ r.device.host }} | Platform | {{ r.device.vendor }} |
|---|---|---|---|
| Model | {{ res.model or "—" }} | Firmware | {{ res.firmware or "—" }} |
| Scanned | {{ res.scanned_at.replace("T", " ") }} | Result | {{ res.summary.pass }} pass · {{ res.summary.fail }} fail · {{ res.summary.unknown }} unknown |
{% for e in f.evidence %}{{ e }}
{% endfor %}{% endif %}
{% if f.note %}{{ f.remediation }}{% endif %}
{% if f.mappings.iso27001_2022 %}Passed: {% for f in res.findings if f.verdict == "pass" %}{{ f.control_id }}{{ ", " if not loop.last }}{% endfor %}