{% extends 'dcim/device/base.html' %} {% load render_table from django_tables2 %} {% load buttons %} {% load static %} {% load helpers %} {% load plugins %} {% load i18n %} {% load l10n %} {% load mptt %} {% block content %}
{% trans "Device" %} | {% trans "Position" %} | {% trans "Master" %} | {% trans "Priority" %} |
---|---|---|---|
{{ vc_member|linkify }} | {% badge vc_member.vc_position show_empty=True %} | {% if object.virtual_chassis.master == vc_member %} {% checkmark True %} {% else %} {{ ''|placeholder }} {% endif %} | {{ vc_member.vc_priority|placeholder }} |
{% trans "Status" %} | {% badge object.get_status_display bg_color=object.get_status_color %} |
---|---|
{% trans "Role" %} | {{ object.role|linkify }} |
{% trans "Platform" %} | {{ object.platform|linkify|placeholder }} |
{% trans "Primary IPv4" %} | {% if object.primary_ip4 %} {{ object.primary_ip4.address.ip }} {% if object.primary_ip4.nat_inside %} ({% trans "NAT for" %} {{ object.primary_ip4.nat_inside.address.ip }}) {% elif object.primary_ip4.nat_outside.exists %} ({% trans "NAT" %}: {% for nat in object.primary_ip4.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% copy_content "primary_ip4" %} {% else %} {{ ''|placeholder }} {% endif %} |
{% trans "Primary IPv6" %} | {% if object.primary_ip6 %} {{ object.primary_ip6.address.ip }} {% if object.primary_ip6.nat_inside %} ({% trans "NAT for" %} {{ object.primary_ip6.nat_inside.address.ip }}) {% elif object.primary_ip6.nat_outside.exists %} ({% trans "NAT" %}: {% for nat in object.primary_ip6.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% copy_content "primary_ip6" %} {% else %} {{ ''|placeholder }} {% endif %} |
Out-of-band IP | {% if object.oob_ip %} {{ object.oob_ip.address.ip }} {% if object.oob_ip.nat_inside %} ({% trans "NAT for" %} {{ object.oob_ip.nat_inside.address.ip }}) {% elif object.oob_ip.nat_outside.exists %} ({% trans "NAT" %}: {% for nat in object.oob_ip.nat_outside.all %}{{ nat.address.ip }}{% if not forloop.last %}, {% endif %}{% endfor %}) {% endif %} {% copy_content "oob_ip" %} {% else %} {{ ''|placeholder }} {% endif %} |
{% trans "Cluster" %} | {% if object.cluster.group %} {{ object.cluster.group|linkify }} / {% endif %} {{ object.cluster|linkify }} |
{% trans "Input" %} | {% trans "Outlets" %} | {% trans "Allocated" %} | {% trans "Available" %} | {% trans "Utilization" %} | ||
---|---|---|---|---|---|---|
{{ powerport }} | {{ utilization.outlet_count }} | {{ utilization.allocated }}{% trans "VA" %} | {% if powerfeed.available_power %}{{ powerfeed.available_power }}{% trans "VA" %} | {% utilization_graph utilization.allocated|percentage:powerfeed.available_power %} | {% else %}— | — | {% endif %}
{% trans "Leg" context "Leg of a power feed" %} {{ leg.name }} | {{ leg.outlet_count }} | {{ leg.allocated }} | {% if powerfeed.available_power %} {% with phase_available=powerfeed.available_power|divide:3 %}{{ phase_available }}{% trans "VA" %} | {% utilization_graph leg.allocated|percentage:phase_available %} | {% endwith %} {% else %}— | — | {% endif %}
{% trans "Height" %} | {{ object.device_type.u_height }}U |
---|---|
{% trans "Weight" %} | {% if object.total_weight %} {{ object.total_weight|floatformat }} {% trans "Kilograms" %} ({{ object.total_weight|kg_to_pounds|floatformat }} {% trans "Pounds" %}) {% else %} {{ ''|placeholder }} {% endif %} |