{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {% extends 'base/layout.html' %} {% block title %}Import Results{% endblock %} {% block head %} {% endblock %} {% block content %}
Import Complete — Step 3 of 3
{% with c=result.counts %} {{ c.racks_created|default:0 }} rack{{ c.racks_created|default:0|pluralize }} created {{ c.devices_created|default:0 }} device{{ c.devices_created|default:0|pluralize }} created {% if c.racks_updated or c.devices_updated %} {% with racks_updated=c.racks_updated|default:0 devices_updated=c.devices_updated|default:0 %} {{ racks_updated|add:devices_updated }} updated {% endwith %} {% endif %} {% if c.ignored %}{{ c.ignored }} ignored{% endif %} {% if c.skipped %}{{ c.skipped }} skipped{% endif %} {% if c.errors %}{{ c.errors }} error{{ c.errors|pluralize }}{% endif %} {% endwith %}
New Import
{% for row in result.rows %} {% empty %} {% endfor %}
# Source ID Name Type Action Detail / Link
{{ row.row_number }} {{ row.source_id|default:"—" }} {% if row.netbox_url %} {{ row.name|default:"—" }} {% else %} {{ row.name|default:"—" }} {% endif %} {% if row.object_type == 'rack' %} Rack {% elif row.object_type == 'device' %} Device {% else %} {{ row.object_type }} {% endif %} {% if row.action == 'create' %}Created {% elif row.action == 'update' %}Updated {% elif row.action == 'skip' %}Skipped {% elif row.action == 'error' %}Error {% elif row.action == 'ignore' %} Ignored {% endif %} {{ row.detail }}
No rows processed.
{% endblock %}