{% extends 'generic/object.html' %} {% load helpers %} {% load render_table from django_tables2 %} {% block content %}
| NetBox Device | {{ object.device|linkify }} |
|---|---|
| Name | {{ object.device.name }} |
| API URL | {{ object.api_url }} |
| API Username | {{ object.api_username }} |
| Verify SSL | {% checkmark object.verify_ssl %} |
| Vendor | {{ object.get_vendor_display }} |
| Outlet Count | {{ outlet_count }} |
| Inlet Count | {{ inlet_count }} |
| Default Gateway | {{ object.default_gateway|placeholder }} |
|---|---|
| DNS Servers | {{ object.dns_servers|placeholder }} |
| NTP Servers | {{ object.ntp_servers|placeholder }} |
| Interface | MAC Address | IP Address | Config | Link Speed |
|---|---|---|---|---|
| {{ iface.interface_name }} | {{ iface.mac_address|placeholder }} |
{{ iface.ip_address|placeholder }} | {{ iface.config_method|placeholder }} | {{ iface.link_speed|placeholder }} |
| Status | {% badge object.get_sync_status_display bg_color=object.get_sync_status_color %} |
|---|---|
| Last Synced | {{ object.last_synced|placeholder }} |
| Metrics Status | {% badge object.get_metrics_status_display bg_color=object.get_metrics_status_color %} |
| Last Metrics Fetched | {{ object.last_metrics_fetched|placeholder }} |
| Model | {{ object.pdu_model|placeholder }} |
|---|---|
| Serial Number | {{ object.serial_number|placeholder }} |
| Firmware | {{ object.firmware_version|placeholder }} |
| HW Revision | {{ object.hw_revision|placeholder }} |
| MAC Address | {{ object.pdu_mac_address|placeholder }} |
| Rated Voltage | {{ object.rated_voltage|placeholder }} |
| Rated Current | {{ object.rated_current|placeholder }} |
| Rated Frequency | {{ object.rated_frequency|placeholder }} |
| Rated Power | {{ object.rated_power|placeholder }} |
| Phase Type | {% if object.phase_type == "three" %} 3 Phase {% elif object.phase_type == "single" %} Single Phase {% else %} {{ ""|placeholder }} {% endif %} |
| Device Time | {{ object.device_time|placeholder }} |
| OCP | Rating (A) | Current (A) | L1 (A) | L2 (A) | L3 (A) | Status | Last Updated |
|---|---|---|---|---|---|---|---|
| {{ ocp.ocp_id }} | {% if ocp.rating_current_a is not None %}{{ ocp.rating_current_a|floatformat:1 }} A{% else %}—{% endif %} | {% if ocp.current_a is not None %}{{ ocp.current_a|floatformat:2 }} A{% else %}—{% endif %} | {% if ocp.poleline_l1_current_a is not None %}{{ ocp.poleline_l1_current_a|floatformat:2 }}{% else %}—{% endif %} | {% if ocp.poleline_l2_current_a is not None %}{{ ocp.poleline_l2_current_a|floatformat:2 }}{% else %}—{% endif %} | {% if ocp.poleline_l3_current_a is not None %}{{ ocp.poleline_l3_current_a|floatformat:2 }}{% else %}—{% endif %} | {% if ocp.tripped is None %} Unknown {% elif ocp.tripped %} Tripped {% else %} Normal {% endif %} | {{ ocp.last_updated_from_pdu|placeholder }} |