2021-07-16 09:15:19 -04:00
|
|
|
{% extends 'ipam/iprange/base.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load plugins %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2021-07-16 09:15:19 -04:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="col col-md-6">
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">{% trans "IP Range" %}</h5>
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Family" %}</th>
|
|
|
|
<td>IPv{{ object.family }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Starting Address" %}</th>
|
|
|
|
<td>{{ object.start_address }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Ending Address" %}</th>
|
|
|
|
<td>{{ object.end_address }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Size" %}</th>
|
|
|
|
<td>{{ object.size }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Utilization" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.mark_utilized %}
|
|
|
|
{% utilization_graph 100 warning_threshold=0 danger_threshold=0 %}
|
|
|
|
<small>({% trans "Marked fully utilized" %})</small>
|
|
|
|
{% else %}
|
|
|
|
{% utilization_graph object.utilization %}
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "VRF" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.vrf %}
|
|
|
|
{{ object.vrf|linkify }} ({{ object.vrf.rd }})
|
|
|
|
{% else %}
|
|
|
|
<span>{% trans "Global" %}</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Role" %}</th>
|
|
|
|
<td>{{ object.role|linkify|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Status" %}</th>
|
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Tenant" %}</th>
|
|
|
|
<td>
|
|
|
|
{% if object.tenant.group %}
|
|
|
|
{{ object.tenant.group|linkify }} /
|
|
|
|
{% endif %}
|
|
|
|
{{ object.tenant|linkify|placeholder }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2021-07-16 09:15:19 -04:00
|
|
|
</div>
|
2024-01-17 16:25:42 -05:00
|
|
|
{% plugin_left_page object %}
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
|
|
|
{% include 'inc/panels/tags.html' %}
|
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
|
|
{% include 'inc/panels/comments.html' %}
|
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
2021-07-16 09:15:19 -04:00
|
|
|
</div>
|
2023-12-27 11:49:13 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-12">
|
|
|
|
{% include 'inc/panel_table.html' with table=parent_prefixes_table heading='Parent Prefixes' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-16 09:15:19 -04:00
|
|
|
<div class="row">
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
2021-07-16 09:15:19 -04:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|