Back to Netbox

Power Utilization

netbox/templates/dcim/panels/power_utilization.html

4.6.91.2 KB
Original Source

{% extends "ui/panels/_base.html" %} {% load helpers i18n %} {% block panel_content %}

{% trans "Input" %}{% trans "Outlets" %}{% trans "Allocated" %}{% trans "Available" %}{% trans "Utilization" %}
{% for powerport in object.powerports.all %} {% with utilization=powerport.get_power_draw powerfeed=powerport.connected_endpoints.0 %}{{ powerport }}{{ utilization.outlet_count }}{{ utilization.allocated }}{% trans "VA" %}{% if powerfeed.available_power %} {{ powerfeed.available_power }}{% trans "VA" %}
{% for leg in utilization.legs %}{% 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
{% endfor %} {% endwith %} {% endfor %}
{% endblock panel_content %}