{# SPDX-License-Identifier: AGPL-3.0-only Copyright 2026 Mouad Lyaazale. Additional terms (author attribution, names): see NOTICE. -#} {% extends "base.html" %} {% from "_macros.html" import spark %} {% block title %}{{ device.id }}{% endblock %} {% block nav_switches %}active{% endblock %} {% block content %}
← Switches

{{ device.id }} {% if result %}Level {{ result.summary.achieved_level }}{% endif %}

{% if site %}{{ site.name }} · {% endif %}{{ device.host }} · {{ device.vendor }}{% if result and result.model %} · {{ result.model }} · firmware {{ result.firmware }}{% endif %}{% if result %} · scanned {{ result.scanned_at.replace("T", " ") }} · spec {{ result.spec_version }}{% endif %}

Edit {% if result %}Export report Fix…{% endif %}
{% if not result %}

Not scanned yet

Run a scan to assess this switch.

{% else %}
Pass{{ result.summary.pass }}
Fail{{ result.summary.fail }}
Unknown{{ result.summary.unknown }}
Failed controls over time{{ spark(scans|map(attribute="fail")|list, 200, 40) }}
{% if last_change and (last_change.new_fail or last_change.fixed) %}
Since the previous scan: {% if last_change.new_fail %}new failures {{ last_change.new_fail|join(", ") }}{% endif %} {% if last_change.new_fail and last_change.fixed %} · {% endif %} {% if last_change.fixed %}fixed {{ last_change.fixed|join(", ") }}{% endif %}
{% endif %}
{% for level, findings in groups|dictsort %}

Level {{ level }} · {{ levels[level] }}

{% for f in findings %}
{{ {"pass": "Pass", "fail": "Fail", "unknown": "Unknown", "not_applicable": "N/A"}[f.verdict] }} {{ f.control_id }} {{ f.title }}{% if f.advisory %} (advisory: not counted for the level){% endif %}
{% if f.evidence %}
Evidence
{% for e in f.evidence %}{{ e }}
{% endfor %}
{% endif %} {% if f.note %}

{{ f.note }}

{% endif %} {% if f.remediation %}
Recommended fix (review before applying; scans never change the switch)
{{ f.remediation }}
{% endif %} {% if f.mappings.iso27001_2022 %}
ISO 27001:2022 {% for m in f.mappings.iso27001_2022 %}{{ m }}{% endfor %}
{% endif %}
{% endfor %}
{% endfor %} {% endif %}

SSH host key

Recorded on the first connection, then required: if the switch presents another key, LYSS refuses to connect and sends no password (possible interception).

{{ host_key or "not recorded yet (recorded at the next scan)" }}

{% if host_key %}
{% endif %}

Configuration backups

Every collection is archived (a new version only when the configuration changed). This is the evidence for LYSS-BKP-001.

Last collection
{{ backup.last.replace("T", " ") if backup.last else "never" }}
Last automatic
{{ backup.last_automatic.replace("T", " ") if backup.last_automatic else "none (enable scheduled scans in Settings)" }}
Versions kept
{{ backup.versions }}
External backup
{% if backup.attestation %}{{ backup.attestation.reference }} · attested {{ backup.attestation.date[:10] }} · {% if backup.attestation.expired %}expired {{ backup.attestation.expires[:10] }}{% else %}valid until {{ backup.attestation.expires[:10] }}{% endif %} {% else %}not attested{% endif %}
{% if versions %} {% for v in versions %} {% endfor %}
VersionCollected by
{{ v.ts.replace("T", " ") }}{{ v.trigger }} {{ "Changes" if not loop.last else "First version" }}
{% endif %}
{% if backup.attestation %}
{% endif %}
{% endblock %}