{% 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" %}

{% with nb=object.details.netbox %} {% if nb %} {% if nb.serial %}{% endif %} {% if nb.custom_fields %}{% endif %} {% if nb.interfaces_created %}{% endif %} {% if nb.interfaces_updated %}{% endif %} {% if nb.lag_members %}{% endif %} {% if nb.mac_addresses %}{% endif %} {% if nb.ip_addresses_created %}{% endif %} {% if nb.ip_addresses_updated %}{% endif %} {% if nb.vrfs_created %}{% endif %}
{% trans "Serial set" %}{{ nb.serial }}
{% trans "Custom fields" %}{% for k, v in nb.custom_fields.items %}{{ k }} = {{ v }}
{% endfor %}
{% trans "Interfaces created" %}{{ nb.interfaces_created|join:", " }}
{% trans "Interfaces updated" %}{% for name, fields in nb.interfaces_updated.items %}{{ name }} ({{ fields|join:", " }})
{% endfor %}
{% trans "LAG membership" %}{% for m in nb.lag_members %}{{ m }}
{% endfor %}
{% trans "MAC addresses" %}{% for m in nb.mac_addresses %}{{ m }}
{% endfor %}
{% trans "IP addresses created" %}{% for ip in nb.ip_addresses_created %}{{ ip }}
{% endfor %}
{% trans "IP addresses updated" %}{% for ip in nb.ip_addresses_updated %}{{ ip }}
{% endfor %}
{% trans "VRFs created" %}{{ nb.vrfs_created|join:", " }}
{% if not nb.serial and not nb.custom_fields and not nb.interfaces_created and not nb.interfaces_updated and not nb.lag_members and not nb.mac_addresses and not nb.ip_addresses_created and not nb.ip_addresses_updated and not nb.vrfs_created %}
{% trans "Nothing changed in NetBox." %}
{% endif %} {% else %}
{% trans "NetBox was not updated." %}
{% endif %} {% endwith %}

{% trans "Connection attempts and warnings" %}

    {% for attempt in object.details.attempts %}
  • {{ attempt }}
  • {% endfor %} {% for warning in object.details.warnings %}
  • {{ warning }}
  • {% endfor %} {% if not object.details.attempts and not object.details.warnings %}
  • —
  • {% endif %}
{% endblock %}