{# SPDX-License-Identifier: AGPL-3.0-only Copyright 2026 Mouad Lyaazale. Additional terms (author attribution, names): see NOTICE. -#} {% extends "base.html" %} {% block title %}Remediation{% endblock %} {% block nav_remediation %}active{% endblock %} {% block content %}
{% if only %}← {{ only }}{% endif %}

Remediation

Low-risk fixes only. For each switch, one at a time: fresh scan, configuration backup, commands, automatic rollback on error, verification over a new SSH connection, then save. Every action is logged.

{% if errors %}
{% endif %} {% if not cfg.enabled %}
Remediation is disabled. Review the fixes below, then enable it in Settings › Remediation.
{% endif %}
Applying fixes 0 %
{% if job and job.finished %}

Last run

{% endif %} {% if rows %}
{% for row in rows %}

{{ row.device.id }} {{ row.device.host }}{% if row.result %} · {{ row.result.model }} {{ row.result.firmware }}{% endif %}

{% for f in row.fixes %}
{% if f.note %}

{{ f.note }}

{% endif %} {% if f.blocked %}

Not available: {{ f.blocked }}

{% endif %}
Commands and rollback
Commands
{{ f.commands|join("\n") }}
Rollback
{{ f.rollback|join("\n") }}
{% endfor %}
{% endfor %}
Selected fixes are applied switch by switch. A switch that fails verification is rolled back and not saved.
{% else %}

Nothing to fix automatically

No low-risk fix applies to the failing controls{% if only %} of {{ only }}{% endif %}. The remaining findings need a planned change.

{% endif %}

Change log

{% if changes %} {% for c in changes %} {% endfor %}
DateSwitchAppliedRolled backOutcome
{{ c.ts.replace("T", " ") }}{{ c.device }} {{ (c.applied or [])|join(", ") or "—" }} {{ (c.rolled_back or [])|join(", ") or "—" }} {{ c.outcome }}{% if c.saved %} · saved{% endif %}
{% else %}

No change yet.

{% endif %}
{% endblock %}