2020-04-10 10:21:02 -04:00
|
|
|
{% extends 'base.html' %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% load buttons %}
|
2019-04-15 21:38:04 -04:00
|
|
|
{% load custom_links %}
|
2018-05-18 11:09:11 -04:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2016-03-01 11:23:03 -05:00
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block header %}
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="row noprint">
|
2018-06-14 16:15:14 -04:00
|
|
|
<div class="col-sm-8 col-md-9">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'ipam:aggregate_list' %}">Aggregates</a></li>
|
2020-11-19 12:24:52 -05:00
|
|
|
<li><a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a></li>
|
|
|
|
<li>{{ object }}</li>
|
2018-06-14 16:15:14 -04:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-md-3">
|
|
|
|
<form action="{% url 'ipam:aggregate_list' %}" method="get">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" placeholder="Search aggregates" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-magnify" aria-hidden="true"></span>
|
2018-06-14 16:15:14 -04:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2019-03-05 15:42:47 -06:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_buttons object %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% if perms.ipam.add_aggregate %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% clone_button object %}
|
2019-12-06 16:13:52 -05:00
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% if perms.ipam.change_aggregate %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% edit_button object %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.delete_aggregate %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% delete_button object %}
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endif %}
|
2016-07-29 12:51:23 -04:00
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
<h1>{% block title %}{{ object }}{% endblock %}</h1>
|
2020-11-19 13:44:34 -05:00
|
|
|
{% include 'inc/created_updated.html' %}
|
2020-01-02 16:29:11 +00:00
|
|
|
{% include 'ipam/inc/toggle_available.html' %}
|
2019-04-15 21:38:04 -04:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% custom_links object %}
|
2019-04-15 21:38:04 -04:00
|
|
|
</div>
|
2018-06-14 16:15:14 -04:00
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{{ object.get_absolute_url }}">Aggregate</a>
|
2018-06-14 16:15:14 -04:00
|
|
|
</li>
|
2019-04-12 09:29:36 -04:00
|
|
|
{% if perms.extras.view_objectchange %}
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'ipam:aggregate_changelog' pk=object.pk %}">Change Log</a>
|
2019-04-12 09:29:36 -04:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2018-06-14 16:15:14 -04:00
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2016-06-22 10:57:32 -04:00
|
|
|
<strong>Aggregate</strong>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2016-12-14 17:09:33 -05:00
|
|
|
<table class="table table-hover panel-body attr-table">
|
2016-03-01 11:23:03 -05:00
|
|
|
<tr>
|
|
|
|
<td>Family</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>IPv{{ object.family }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>RIR</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
2016-03-01 11:23:03 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-06-08 12:48:49 -04:00
|
|
|
<tr>
|
|
|
|
<td>Utilization</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
{{ object.get_utilization }}%
|
2017-06-08 12:48:49 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2020-11-10 11:58:59 -05:00
|
|
|
<tr>
|
|
|
|
<td>Tenant</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.tenant %}
|
|
|
|
{% if prefix.object.group %}
|
|
|
|
<a href="{{ object.tenant.group.get_absolute_url }}">{{ object.tenant.group }}</a> /
|
2020-11-10 11:58:59 -05:00
|
|
|
{% endif %}
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
2020-11-10 11:58:59 -05:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2016-03-01 11:23:03 -05:00
|
|
|
<tr>
|
|
|
|
<td>Date Added</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>{{ object.date_added|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Description</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>{{ object.description|placeholder }}</td>
|
2016-03-01 11:23:03 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_left_page object %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2016-08-15 15:24:23 -04:00
|
|
|
<div class="col-md-6">
|
2020-11-19 13:53:37 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:aggregate_list' %}
|
|
|
|
{% plugin_right_page object %}
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_full_width_page object %}
|
2016-08-15 15:24:23 -04:00
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2016-05-16 16:15:37 -04:00
|
|
|
{% include 'utilities/obj_table.html' with table=prefix_table table_template='panel_table.html' heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|