{% extends 'ipam/prefix/base.html' %} {% load humanize %} {% load helpers %} {% load plugins %} {% load i18n %} {% load mptt %} {% block content %}
{% trans "Prefix" %}
{% if object.site.region %} {% endif %}
{% trans "Family" %} IPv{{ object.family }}
{% trans "VRF" %} {% if object.vrf %} {{ object.vrf }} {% else %} {% trans "Global" %} {% endif %}
{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
{% trans "Aggregate" %} {% if aggregate %} {{ aggregate.prefix }} ({{ aggregate.rir }}) {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Region" %} {% nested_tree object.site.region %}
{% trans "Site" %} {{ object.site|linkify|placeholder }}
{% trans "VLAN" %} {% if object.vlan %} {% if object.vlan.group %} {{ object.vlan.group|linkify }} / {% endif %} {{ object.vlan|linkify }} {% else %} {{ ''|placeholder }} {% endif %}
{% trans "Status" %} {% badge object.get_status_display bg_color=object.get_status_color %}
{% trans "Role" %} {{ object.role|linkify|placeholder }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Is a pool" %} {% checkmark object.is_pool %}
{% plugin_left_page object %}
{% trans "Addressing" %}
{% with child_ip_count=object.get_child_ips.count %} {% endwith %} {% with available_count=object.get_available_ips.size %} {% endwith %}
{% trans "Utilization" %} {% if object.mark_utilized %} {% utilization_graph 100 warning_threshold=0 danger_threshold=0 %} ({% trans "Marked fully utilized" %}) {% else %} {% utilization_graph object.get_utilization %} {% endif %}
{% trans "Child IPs" %} {{ child_ip_count }}
{% trans "Available IPs" %} {# Use human-friendly words for counts greater than one million #} {% if available_count > 1000000 %} {{ available_count|intword }} {% else %} {{ available_count|intcomma }} {% endif %}
{% trans "First available IP" %} {% with first_available_ip=object.get_first_available_ip %} {% if first_available_ip %} {% if perms.ipam.add_ipaddress %} {{ first_available_ip }} {% else %} {{ first_available_ip }} {% endif %} {% else %} {{ ''|placeholder }} {% endif %} {% endwith %}
{% if object.prefix.version == 4 %} {% endif %}
{% include 'inc/panels/custom_fields.html' %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %} {% plugin_right_page object %}
{% if duplicate_prefix_table.rows %} {% include 'inc/panel_table.html' with table=duplicate_prefix_table heading='Duplicate Prefixes' %} {% endif %} {% include 'inc/panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' %} {% plugin_full_width_page object %}
{% endblock %} {% block modals %} {{ block.super }} {% if object.prefix.version == 4 %} {% endif %} {% endblock %}