2021-03-02 15:58:33 -05:00
|
|
|
{% extends 'generic/object.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
|
|
|
|
2021-03-02 15:58:33 -05:00
|
|
|
{% block title %}VRF {{ object }}{% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
|
|
|
<li><a href="{% url 'ipam:vrf_list' %}">VRFs</a></li>
|
|
|
|
<li>{{ object }}</li>
|
2018-06-14 16:15:14 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2016-03-01 11:23:03 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
VRF
|
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.enforce_unique %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<span class="badge bg-info">Unique IP Space</span>
|
2016-07-14 16:13:02 -04:00
|
|
|
{% else %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<span class="badge bg-warning text-body">Non-Unique IP Space</span>
|
2016-07-14 16:13:02 -04:00
|
|
|
{% endif %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Route Distinguisher</td>
|
|
|
|
<td><code>{{ object.rd }}</code></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Tenant</td>
|
|
|
|
<td>
|
|
|
|
{% if object.tenant %}
|
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Description</td>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Prefixes</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'ipam:prefix_list' %}?vrf_id={{ object.pk }}">{{ prefix_count }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:vrf_list' %}
|
2020-11-19 13:53:37 -05:00
|
|
|
{% include 'inc/custom_fields_panel.html' %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_left_page object %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2020-09-24 12:09:28 -04:00
|
|
|
{% include 'panel_table.html' with table=import_targets_table heading="Import Route Targets" %}
|
|
|
|
{% include 'panel_table.html' with table=export_targets_table heading="Export Route Targets" %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% 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 %}
|
2019-01-31 10:06:08 -05:00
|
|
|
</div>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|