2016-03-01 11:23:03 -05: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:ipaddress_list' %}" > IP Addresses< / a > < / li >
{% if ipaddress.vrf %}
< li > < a href = "{% url 'ipam:vrf' pk=ipaddress.vrf.pk %}" > {{ ipaddress.vrf }}< / a > < / li >
{% endif %}
< li > {{ ipaddress }}< / li >
< / ol >
< / div >
< div class = "col-sm-4 col-md-3" >
< form action = "{% url 'ipam:ipaddress_list' %}" method = "get" >
< div class = "input-group" >
< input type = "text" name = "q" class = "form-control" placeholder = "Search IPs" / >
< span class = "input-group-btn" >
< button type = "submit" class = "btn btn-primary" >
< span class = "fa fa-search" aria-hidden = "true" > < / span >
< / 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-03-15 23:45:18 -04:00
{% plugin_buttons ipaddress %}
2019-12-06 16:13:52 -05:00
{% if perms.ipam.add_ipaddress %}
2019-12-13 15:29:55 -05:00
{% clone_button ipaddress %}
2019-12-06 16:13:52 -05:00
{% endif %}
2018-06-14 16:15:14 -04:00
{% if perms.ipam.change_ipaddress %}
2019-12-13 15:29:55 -05:00
{%edit_button ipaddress %}
2018-06-14 16:15:14 -04:00
{% endif %}
{% if perms.ipam.delete_ipaddress %}
2019-12-13 15:29:55 -05:00
{% delete_button ipaddress %}
2018-06-14 16:15:14 -04:00
{% endif %}
2016-03-01 11:23:03 -05:00
< / div >
2018-06-14 16:15:14 -04:00
< h1 > {% block title %}{{ ipaddress }}{% endblock %}< / h1 >
{% include 'inc/created_updated.html' with obj=ipaddress %}
2019-04-15 21:38:04 -04:00
< div class = "pull-right noprint" >
{% custom_links ipaddress %}
< / div >
2018-06-14 16:15:14 -04:00
< ul class = "nav nav-tabs" >
< li role = "presentation" { % if not active_tab % } class = "active" { % endif % } >
< a href = "{{ ipaddress.get_absolute_url }}" > IP Address< / a >
< / 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-02-19 12:45:52 -05:00
< a href = "{% url 'ipam:ipaddress_changelog' pk=ipaddress.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" >
2017-08-02 12:55:21 -04:00
< div class = "col-md-4" >
2016-03-01 11:23:03 -05:00
< div class = "panel panel-default" >
< div class = "panel-heading" >
2016-06-22 10:57:32 -04:00
< strong > IP Address< / 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-02-14 15:04:33 -05:00
< td > IPv{{ ipaddress.family }}< / td >
2016-03-01 11:23:03 -05:00
< / tr >
< tr >
< td > VRF< / td >
2016-05-12 16:02:01 -04:00
< td >
{% if ipaddress.vrf %}
2019-02-14 14:48:25 +01:00
< a href = "{% url 'ipam:vrf' pk=ipaddress.vrf.pk %}" > {{ ipaddress.vrf }}< / a >
2016-05-12 16:02:01 -04:00
{% else %}
< span > Global< / span >
{% endif %}
< / td >
2016-03-01 11:23:03 -05:00
< / tr >
2016-07-28 13:50:46 -04:00
< tr >
< td > Tenant< / td >
< td >
{% if ipaddress.tenant %}
2018-07-18 15:10:12 -04:00
{% if ipaddress.tenant.group %}
< a href = "{{ ipaddress.tenant.group.get_absolute_url }}" > {{ ipaddress.tenant.group }}< / a >
< i class = "fa fa-angle-right" > < / i >
{% endif %}
2016-07-28 13:50:46 -04:00
< a href = "{{ ipaddress.tenant.get_absolute_url }}" > {{ ipaddress.tenant }}< / a >
{% else %}
< span class = "text-muted" > None< / span >
{% endif %}
< / td >
< / tr >
2016-10-21 12:34:02 -04:00
< tr >
< td > Status< / td >
< td >
< span class = "label label-{{ ipaddress.get_status_class }}" > {{ ipaddress.get_status_display }}< / span >
< / td >
< / tr >
2017-06-14 16:11:13 -04:00
< tr >
< td > Role< / td >
< td >
2017-08-29 16:14:32 -04:00
{% if ipaddress.role %}
< a href = "{% url 'ipam:ipaddress_list' %}?role={{ ipaddress.role }}" > {{ ipaddress.get_role_display }}< / a >
{% else %}
< span class = "text-muted" > None< / span >
{% endif %}
2017-06-14 16:11:13 -04:00
< / td >
< / tr >
2019-04-22 18:10:28 -04:00
< tr >
< td > DNS Name< / td >
< td > {{ ipaddress.dns_name|placeholder }}< / td >
< / tr >
2016-03-01 11:23:03 -05:00
< tr >
< td > Description< / td >
2018-11-05 13:00:46 -05:00
< td > {{ ipaddress.description|placeholder }}< / td >
2016-03-01 11:23:03 -05:00
< / tr >
< tr >
< td > Assignment< / td >
< td >
{% if ipaddress.interface %}
2017-08-29 15:26:35 -04:00
< span > < a href = "{{ ipaddress.interface.parent.get_absolute_url }}" > {{ ipaddress.interface.parent }}< / a > ({{ ipaddress.interface }})< / span >
2016-03-01 11:23:03 -05:00
{% else %}
2018-11-05 13:00:46 -05:00
< span class = "text-muted" > — < / span >
2016-03-01 11:23:03 -05:00
{% endif %}
< / td >
< / tr >
< tr >
< td > NAT (inside)< / td >
< td >
{% if ipaddress.nat_inside %}
< a href = "{% url 'ipam:ipaddress' pk=ipaddress.nat_inside.pk %}" > {{ ipaddress.nat_inside }}< / a >
{% if ipaddress.nat_inside.interface %}
2017-08-29 15:26:35 -04:00
(< a href = "{{ ipaddress.nat_inside.interface.parent.get_absolute_url }}" > {{ ipaddress.nat_inside.interface.parent }}< / a > )
2016-03-01 11:23:03 -05:00
{% endif %}
{% else %}
< span class = "text-muted" > None< / span >
{% endif %}
< / td >
< / tr >
< tr >
< td > NAT (outside)< / td >
< td >
{% if ipaddress.nat_outside %}
< a href = "{% url 'ipam:ipaddress' pk=ipaddress.nat_outside.pk %}" > {{ ipaddress.nat_outside }}< / a >
{% else %}
< span class = "text-muted" > None< / span >
{% endif %}
< / td >
< / tr >
< / table >
< / div >
2018-07-20 19:56:04 -04:00
{% include 'inc/custom_fields_panel.html' with obj=ipaddress %}
2018-07-10 10:48:33 -04:00
{% include 'extras/inc/tags_panel.html' with tags=ipaddress.tags.all url='ipam:ipaddress_list' %}
2020-03-15 23:45:18 -04:00
{% plugin_left_page ipaddress %}
2016-03-01 11:23:03 -05:00
< / div >
2017-08-02 12:55:21 -04:00
< div class = "col-md-8" >
2017-05-16 16:19:55 -04:00
{% include 'panel_table.html' with table=parent_prefixes_table heading='Parent Prefixes' %}
2016-06-27 15:51:47 -04:00
{% if duplicate_ips_table.rows %}
2017-05-16 16:19:55 -04:00
{% include 'panel_table.html' with table=duplicate_ips_table heading='Duplicate IP Addresses' panel_class='danger' %}
2016-06-27 15:51:47 -04:00
{% endif %}
2020-01-09 17:16:58 +00:00
{% include 'utilities/obj_table.html' with table=related_ips_table table_template='panel_table.html' heading='Related IP Addresses' panel_class='default noprint' %}
2020-03-15 23:45:18 -04:00
{% plugin_right_page ipaddress %}
2016-03-01 11:23:03 -05:00
< / div >
< / div >
2020-03-15 23:45:18 -04:00
< div class = "row" >
< div class = "col-md-12" >
{% plugin_full_width_page ipaddress %}
< / div >
< / div >
2016-03-01 11:23:03 -05:00
{% endblock %}