2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
2018-05-18 11:09:11 -04:00
|
|
|
{% load helpers %}
|
2020-03-15 23:45:18 -04:00
|
|
|
{% load plugins %}
|
2020-10-02 10:40:05 -04:00
|
|
|
{% load render_table from django_tables2 %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2016-03-01 11:23:03 -05:00
|
|
|
|
2018-06-14 16:15:14 -04:00
|
|
|
{% block content %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-4">
|
2021-12-21 14:04:15 -05:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
2023-07-29 03:30:25 +07:00
|
|
|
{% trans "IP Address" %}
|
2021-12-21 14:04:15 -05:00
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Family" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>IPv{{ object.family }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "VRF" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>
|
|
|
|
{% if object.vrf %}
|
|
|
|
<a href="{% url 'ipam:vrf' pk=object.vrf.pk %}">{{ object.vrf }}</a>
|
2021-11-01 16:14:44 -04:00
|
|
|
{% else %}
|
2023-07-29 03:30:25 +07:00
|
|
|
<span>{% trans "Global" %}</span>
|
2021-11-01 16:14:44 -04:00
|
|
|
{% endif %}
|
2021-12-21 14:04:15 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Tenant" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>
|
2022-03-22 15:29:05 -04:00
|
|
|
{% if object.tenant.group %}
|
|
|
|
{{ object.tenant.group|linkify }} /
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
2022-03-22 15:29:05 -04:00
|
|
|
{{ object.tenant|linkify|placeholder }}
|
2021-12-21 14:04:15 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Status" %}</th>
|
2022-02-11 14:25:13 -05:00
|
|
|
<td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
|
2021-12-21 14:04:15 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Role" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>
|
|
|
|
{% if object.role %}
|
|
|
|
<a href="{% url 'ipam:ipaddress_list' %}?role={{ object.role }}">{{ object.get_role_display }}</a>
|
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "DNS Name" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>{{ object.dns_name|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Description" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "Assignment" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>
|
|
|
|
{% if object.assigned_object %}
|
|
|
|
{% if object.assigned_object.parent_object %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.assigned_object.parent_object|linkify }} /
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.assigned_object|linkify }}
|
2020-10-02 10:40:05 -04:00
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2020-10-02 10:40:05 -04:00
|
|
|
{% endif %}
|
2021-12-21 14:04:15 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "NAT (inside)" %}</th>
|
2021-12-21 14:04:15 -05:00
|
|
|
<td>
|
|
|
|
{% if object.nat_inside %}
|
2022-03-22 14:51:20 -04:00
|
|
|
{{ object.nat_inside|linkify }}
|
2021-12-21 14:04:15 -05:00
|
|
|
{% if object.nat_inside.assigned_object %}
|
2022-03-22 14:51:20 -04:00
|
|
|
({{ object.nat_inside.assigned_object.parent_object|linkify }})
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2022-06-15 22:33:21 +02:00
|
|
|
{{ ''|placeholder }}
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2023-07-29 03:30:25 +07:00
|
|
|
<th scope="row">{% trans "NAT (outside)" %}</th>
|
2022-05-11 16:22:07 -04:00
|
|
|
<td>
|
|
|
|
{% for ip in object.nat_outside.all %}
|
2022-08-18 16:22:22 -05:00
|
|
|
{{ ip|linkify }}
|
2022-08-23 09:17:12 -04:00
|
|
|
{% if ip.assigned_object %}
|
|
|
|
({{ ip.assigned_object.parent_object|linkify }})
|
|
|
|
{% endif %}<br/>
|
2022-05-11 16:22:07 -04:00
|
|
|
{% empty %}
|
|
|
|
{{ ''|placeholder }}
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2021-12-21 14:04:15 -05:00
|
|
|
</tr>
|
2023-07-25 19:40:40 +01:00
|
|
|
<tr>
|
|
|
|
<td>Primary IP</td>
|
|
|
|
<td>{% checkmark object.is_primary_ip %}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>OOB IP</td>
|
|
|
|
<td>{% checkmark object.is_oob_ip %}</td>
|
|
|
|
</tr>
|
2021-12-21 14:04:15 -05:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% include 'inc/panels/tags.html' %}
|
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
2022-11-04 08:28:09 -04:00
|
|
|
{% include 'inc/panels/comments.html' %}
|
2021-12-21 14:04:15 -05:00
|
|
|
{% plugin_left_page object %}
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-8">
|
|
|
|
{% include 'inc/panel_table.html' with table=parent_prefixes_table heading='Parent Prefixes' %}
|
|
|
|
{% if duplicate_ips_table.rows %}
|
2023-01-16 15:50:45 -05:00
|
|
|
{% include 'inc/panel_table.html' with table=duplicate_ips_table heading='Duplicate IPs' panel_class='danger' %}
|
2021-12-21 14:04:15 -05:00
|
|
|
{% endif %}
|
2023-01-25 20:25:06 -05:00
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Services" %}</h5>
|
2023-01-25 20:25:06 -05:00
|
|
|
<div class="card-body htmx-container table-responsive"
|
|
|
|
hx-get="{% url 'ipam:service_list' %}?ipaddress_id={{ object.pk }}"
|
|
|
|
hx-trigger="load"
|
|
|
|
></div>
|
|
|
|
</div>
|
2021-12-21 14:04:15 -05:00
|
|
|
{% plugin_right_page object %}
|
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
<div class="row">
|
2023-01-25 20:25:06 -05:00
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
|
|
|
</div>
|
2020-03-15 23:45:18 -04:00
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endblock %}
|