{% extends 'base/layout.html' %} {% load i18n %} {% load helpers %} {% block title %}{% trans "Object Sync" %}{% endblock %} {% block head %} {% endblock head %} {% block content %}
{% if source_filter %}{% endif %} {% if request.GET.sync_per_page %}{% endif %} {% for key, value in request.GET.items %} {% if key|slice:":3" == "sf_" %} {% endif %} {% endfor %}

{% trans "Object Sync" %}

{% trans "Review IPAM ↔ nsm_address sync status and apply fixes." %}

{% if not sync_enabled %}
{% trans "Object Sync is disabled or not configured." %} {% trans "Edit Object Config for nsm_address" %}
{% endif %}
{% trans "Overview" %}
{% for cat, label, count in sync_category_rows %}
{{ count }}
{{ label }}
{% endfor %}
{% if can_fix_sync_issues %}
{% csrf_token %} {% include "netbox_nsm/inc/object_sync_query_hidden.html" %} {% endif %}
{% trans "Sync Report" %} {% if can_fix_sync_issues %}
{% endif %}
{% if can_fix_sync_issues %} {% endif %} {% include "netbox_nsm/inc/object_sync_filter_row.html" with filter_columns=sync_filter_columns quicksearch_form_id="object-sync-quicksearch" show_selection_column=can_fix_sync_issues show_filter_actions=True show_fix_column=True filter_active=sync_filter_active clear_filters_url=sync_clear_filters_url %} {% for issue in sync_issues %} {% if can_fix_sync_issues %} {% endif %} {% empty %} {% endfor %}
{% trans "Category" %} {% trans "Source" %} {% trans "IPAM / Address" %} {% trans "Expected name" %} {% trans "Status" %} {% trans "Details" %} {% trans "Fix" %}
{% if issue.sync_selection_id %} {% endif %} {{ issue.category }} {{ issue.source_key|default:"—" }} {% if issue.ipam_obj %} {% include "netbox_nsm/inc/object_sync_object_link.html" with obj=issue.ipam_obj %} {% elif issue.address_obj %} {% include "netbox_nsm/inc/object_sync_object_link.html" with obj=issue.address_obj %} {% elif issue.group_obj %} {% include "netbox_nsm/inc/object_sync_object_link.html" with obj=issue.group_obj %} {% else %} — {% endif %} {% if issue.expected_name %} {{ issue.expected_name }} {% else %} — {% endif %} {% if issue.expected_status %} {{ issue.expected_status }} {% if issue.category == "missing" and not issue.can_create %} {% trans "not buildable" %} {% endif %} {% elif issue.actual_status %} {{ issue.actual_status }} {% else %} — {% endif %} {% if issue.expected_status and issue.actual_status %}
{% trans "Expected status" %}: {{ issue.expected_status }} / {% trans "actual" %}: {{ issue.actual_status }}
{% endif %} {% if issue.addresses %}
{% trans "Addresses" %}: {% for addr in issue.addresses %} {% include "netbox_nsm/inc/object_sync_object_link.html" with obj=addr %}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if issue.groups %}
{% trans "Groups" %}: {% for grp in issue.groups %} {% include "netbox_nsm/inc/object_sync_object_link.html" with obj=grp %}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if issue.member_issues %}
{% trans "Member issues" %}: {{ issue.member_issues|join:", " }}
{% endif %} {% if issue.detail %}{{ issue.detail }}{% endif %}
{% if issue.has_fix_actions and can_fix_sync_issues %}
{% for action in issue.fix_actions %} {% endfor %}
{% else %} — {% endif %}
{% if sync_filter_active %} {% trans "No sync issues match the current filters." %} {% else %} {% trans "No sync issues found." %} {% endif %}
{% include "netbox_nsm/inc/object_sync_pagination.html" %} {% if can_fix_sync_issues %}
{% endif %}
{% endblock %}