{% extends 'dcim/device/base.html' %} {% load render_table from django_tables2 %} {% load buttons %} {% load static %} {% load helpers %} {% load plugins %} {% block content %}
Region | {% if object.site.region %} {% for region in object.site.region.get_ancestors %} {{ region|linkify }} / {% endfor %} {{ object.site.region|linkify }} {% else %} {{ ''|placeholder }} {% endif %} |
---|---|
Site | {{ object.site|linkify }} |
Location | {% if object.location %} {% for location in object.location.get_ancestors %} {{ location|linkify }} / {% endfor %} {{ object.location|linkify }} {% else %} {{ ''|placeholder }} {% endif %} |
Rack | {% if object.rack %} {{ object.rack|linkify }} | {% else %} {{ ''|placeholder }} {% endif %}
Position | {% if object.parent_bay %} {% with object.parent_bay.device as parent %} {{ parent|linkify }} / {{ object.parent_bay }} {% if parent.position %} (U{{ parent.position|floatformat }} / {{ parent.get_face_display }}) {% endif %} {% endwith %} {% elif object.rack and object.position %} U{{ object.position|floatformat }} / {{ object.get_face_display }} {% elif object.rack and object.device_type.u_height %} Not racked {% else %} {{ ''|placeholder }} {% endif %} |
Tenant | {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }} |
Device Type | {{ object.device_type|linkify:"get_full_name" }} ({{ object.device_type.u_height|floatformat }}U) |
Description | {{ object.description|placeholder }} |
Airflow | {{ object.get_airflow_display|placeholder }} |
Serial Number | {{ object.serial|placeholder }} |
Asset Tag | {{ object.asset_tag|placeholder }} |
Device | Position | Master | Priority |
---|---|---|---|
{{ vc_member|linkify }} | {% badge vc_member.vc_position show_empty=True %} | {% if object.virtual_chassis.master == vc_member %}{% endif %} | {{ vc_member.vc_priority|default:"" }} |
Name | Status | Identifier | Tenant |
---|---|---|---|
{{ vdc|linkify }} | {% badge vdc.get_status_display bg_color=vdc.get_status_color %} | {{ vdc.identifier|placeholder }} | {{ vdc.tenant|linkify|placeholder }} |
Status | {% badge object.get_status_display bg_color=object.get_status_color %} |
---|---|
Role | {{ object.device_role|linkify }} |
Platform | {{ object.platform|linkify|placeholder }} |
Primary IPv4 | {% if object.primary_ip4 %} {{ object.primary_ip4.address.ip }} {% if object.primary_ip4.nat_inside %} (NAT for {{ object.primary_ip4.nat_inside.address.ip }}) {% elif object.primary_ip4.nat_outside.exists %} (NAT: {% for nat in object.primary_ip4.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% else %} {{ ''|placeholder }} {% endif %} |
Primary IPv6 | {% if object.primary_ip6 %} {{ object.primary_ip6.address.ip }} {% if object.primary_ip6.nat_inside %} (NAT for {{ object.primary_ip6.nat_inside.address.ip }}) {% elif object.primary_ip6.nat_outside.exists %} (NAT: {% for nat in object.primary_ip6.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% else %} {{ ''|placeholder }} {% endif %} |
Cluster | {% if object.cluster.group %} {{ object.cluster.group|linkify }} / {% endif %} {{ object.cluster|linkify }} |
Input | Outlets | Allocated | Available | Utilization | ||
---|---|---|---|---|---|---|
{{ powerport }} | {{ utilization.outlet_count }} | {{ utilization.allocated }}VA | {% if powerfeed.available_power %}{{ powerfeed.available_power }}VA | {% utilization_graph utilization.allocated|percentage:powerfeed.available_power %} | {% else %}— | — | {% endif %}
Leg {{ leg.name }} | {{ leg.outlet_count }} | {{ leg.allocated }} | {% if powerfeed.available_power %} {% with phase_available=powerfeed.available_power|divide:3 %}{{ phase_available }}VA | {% utilization_graph leg.allocated|percentage:phase_available %} | {% endwith %} {% else %}— | — | {% endif %}