{% extends "ipdevinfo/base.html" %} {% block content %}
{% if netbox %} {% with netbox.get_availability as stats %} {% endwith %} {% else %} N/A {% endif %} {% else %} {% endif %}
IP Device: {{ netbox.sysname }}
Status {{ netbox.get_up_display|capfirst }}
Availability {% with stats.availability as a %} {% if a.day %} {{ stats.availability.day|floatformat:2 }}% {% else %} (N/A) {% endif %} last day, {% if a.week %} {{ stats.availability.week|floatformat:2 }}% {% else %} (N/A) {% endif %} last week, {% if a.month %} {{ stats.availability.month|floatformat:2 }}% {% else %} (N/A) {% endif %} last month {% endwith %}
Response time {% with stats.response_time as rt %} {% if rt.day %} {{ rt.day|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last day, {% if rt.week %} {{ rt.week|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last week, {% if rt.month %} {{ rt.month|floatformat:3 }}{{ rt.data_source.units }} {% else %} (N/A) {% endif %} last month {% endwith %}
Uptime {% ifequal netbox.up netbox.UP_UP %} {{ netbox.up_since|timesince }} {% else %} None {% endifequal %}
IP address {{ netbox.ip }}
Prefix {{ netbox.prefix }}
Uplink {% with netbox.get_uplinks as uplinks %} {% if uplinks %} {% if uplinks|length_is:1 %} {{ uplinks.0 }} {% else %} {% endif %} {% else %} N/A {% endif %} {% endwith %}
Category {{ netbox.category }}
Type {% if netbox.type %} {{ netbox.type }}
Organization {{ netbox.organization }}
Room {{ netbox.room }}
Software {{ netbox.device.software_version }}
Serial number {{ netbox.device.serial }}
# of modules {{ netbox.module_set.count }}
# of switch ports {{ netbox.get_swports.count }}
# of router ports {{ netbox.get_gwports.count }}
First discovered {{ netbox.discovered }}
Last updated {{ netbox.last_updated }}
Actions
IP Device
Sysname or IP "{{ host_info.host }}" was not found in NAV
Host: {{ host_info.host }}
Addresses {% if host_info.addresses %}
    {% for address in host_info.addresses %}
  • {{ address.addr }} {% if address.name %} ({{ address.name }}) {% endif %} {% if address.error %} ({{ address.error }}) {% endif %}
  • {% endfor %}
{% else %} None found {% endif %}

{% if netbox and netbox.service_set.count %}
{% with netbox.service_set.all as service_list %} {% include "ipdevinfo/service-list-table.html" %} {% endwith %}
Services at {{ netbox.sysname }}
{% endif %} {% if netbox and netbox.module_set.count %}

Port view

{% if netbox.get_swports.count %}
{% for module in netbox.module_set.select_related %} {% include "ipdevinfo/module-swport-status.html" %} {% endfor %}
{% endif %} {% if netbox.get_gwports.count %} {% endif %} {% include "ipdevinfo/port-legend.html" %} {% endif %} {% if netbox %}

Statistics

FIXME

{% endif %} {% endblock %}