{% extends 'generic/object.html' %} {% load i18n %} {% block content %}

{% trans "Collection result" %}

{% if object.failed_reason %}{% endif %}
{% trans "Device" %}{{ object.device|linkify|placeholder }}
{% trans "Time" %}{{ object.timestamp|isodatetime }}
{% trans "Status" %}{% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Failure" %}{{ object.get_failed_reason_display }}
{% trans "Message" %}{{ object.message|placeholder }}
{% trans "Transport" %}{{ object.get_transport_display|placeholder }}
{% trans "Duration" %}{% if object.duration is not None %}{{ object.duration|floatformat:1 }} s{% else %}—{% endif %}
{% trans "Config changed" %}{% if object.config_changed is None %}—{% else %}{% checkmark object.config_changed %}{% endif %}
{% trans "Run" %}{% if object.job_id %}#{{ object.job_id }}{% else %}—{% endif %}
{% with device=object.details.device %} {% if device %}

{% trans "Reported by the device" %}

{% trans "Hostname" %}{{ device.hostname|placeholder }}
{% trans "Software version" %}{{ device.version|placeholder }}
{% trans "Model" %}{{ device.model|placeholder }}
{% trans "Serial" %}{{ device.serial|placeholder }}
{% trans "Interfaces parsed" %}{{ device.interfaces }}
{% endif %} {% endwith %}

{% trans "Changes in NetBox" %}

{% if report %} {% if report.serial %}{% endif %} {% if report.custom_fields %} {% endif %} {% for label, items in changes %} {% endfor %}
{% trans "Serial set" %}{{ report.serial }}
{% trans "Custom fields" %}{% for k, v in report.custom_fields.items %}{{ k }} = {{ v }}
{% endfor %}
{{ label|capfirst }}{% for item in items %}{{ item }}
{% endfor %}
{% if not changes and not report.serial and not report.custom_fields %}
{% trans "Nothing changed in NetBox." %}
{% endif %} {% else %}
{% trans "NetBox was not updated." %}
{% endif %} {% if object.details.neighbors is not None and object.device %} {% endif %}

{% trans "Connection attempts and warnings" %}

    {% for attempt in object.details.attempts %}
  • {{ attempt }}
  • {% endfor %} {% for warning in object.details.warnings %}
  • {{ warning }}
  • {% endfor %} {% if object.details.unsupported %}
  • {% trans "Not supported by the device:" %} {{ object.details.unsupported|join:", " }}
  • {% endif %} {% if not object.details.attempts and not object.details.warnings %}
  • —
  • {% endif %}
{% endblock %}