{% extends 'base/layout.html' %} {% load helpers %} {% block title %}UniFi Sync Dashboard{% endblock %} {% block content %}
Run Sync
{% if can_queue_sync %}
{% csrf_token %}

{{ form.dry_run }} {{ form.dry_run.label_tag }}

{% if can_run_cleanup %}

{{ form.cleanup }} {{ form.cleanup.label_tag }}

Cleanup can delete stale NetBox objects. Review a dry run before enabling it.

{% else %}

Cleanup requires the netbox_unifi_sync.run_cleanup permission.

{% endif %}
{% else %}
Missing permission: netbox_unifi_sync.run_sync or netbox_unifi_sync.add_syncrun
{% endif %}
Recent Runs View all
{% for run in recent_runs %} {% empty %} {% endfor %}
IDCreatedStatusModeControllersSitesDevices
#{{ run.pk }} {{ run.created }} {{ run.get_status_display }} {% if run.dry_run %}Dry run{% else %}Sync{% endif %} {{ run.controllers_total }} {{ run.sites_total }} {{ run.devices_total }}
No runs yet.
Status
Enabled
{{ settings.enabled }}
Controllers
{{ controller_count }}
Schedule
{{ settings.schedule_enabled }}
Interval
{{ settings.sync_interval_minutes }} min
Tenant
{{ settings.tenant_name }}
VRF mode
{{ settings.get_vrf_mode_display }}
{% if latest_run %}
Latest Run

ID: #{{ latest_run.pk }}

Status: {{ latest_run.get_status_display }}

Summary: {{ latest_run.summary|default:'-' }}

{% endif %}
{% endblock %}