{% extends '_base.html' %} {% load helpers %} {% block header %}
{% if perms.ipam.add_prefix and active_tab == 'prefixes' and first_available_prefix %} Add Child Prefix {% endif %} {% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and first_available_ip %} Add an IP Address {% endif %} {% if perms.ipam.change_prefix %} Edit this prefix {% endif %} {% if perms.ipam.delete_prefix %} Delete this prefix {% endif %}

{% block title %}{{ prefix }}{% endblock %}

{% include 'inc/created_updated.html' with obj=prefix %} {% endblock %} {% block content %}
Prefix
Family {{ prefix.get_family_display }}
VRF {% if prefix.vrf %} {{ prefix.vrf }} ({{ prefix.vrf.rd }}) {% else %} Global {% endif %}
Tenant {% if prefix.tenant %} {% if prefix.tenant.group %} {{ prefix.tenant.group }} {% endif %} {{ prefix.tenant }} {% else %} None {% endif %}
Aggregate {% if aggregate %} {{ aggregate.prefix }} ({{ aggregate.rir }}) {% else %} None {% endif %}
Site {% if prefix.site %} {% if prefix.site.region %} {{ prefix.site.region }} {% endif %} {{ prefix.site }} {% else %} None {% endif %}
VLAN {% if prefix.vlan %} {% if prefix.vlan.group %} {{ prefix.vlan.group }} {% endif %} {{ prefix.vlan.display_name }} {% else %} None {% endif %}
Status {{ prefix.get_status_display }}
Role {% if prefix.role %} {{ prefix.role }} {% else %} None {% endif %}
Description {% if prefix.description %} {{ prefix.description }} {% else %} N/A {% endif %}
Is a pool {% if prefix.is_pool %} {% else %} {% endif %}
Utilization {% utilization_graph prefix.get_utilization %}
{% include 'inc/custom_fields_panel.html' with custom_fields=prefix.get_custom_fields %} {% include 'extras/inc/tags_panel.html' with tags=prefix.tags.all url='ipam:prefix_list' %}
{% if duplicate_prefix_table.rows %} {% include 'panel_table.html' with table=duplicate_prefix_table heading='Duplicate Prefixes' panel_class='danger' %} {% endif %} {% include 'panel_table.html' with table=parent_prefix_table heading='Parent Prefixes' panel_class='default' %}
{% endblock %}