Fixes #2202: Ditched half-baked concept of tenancy inheritance via VRF

This commit is contained in:
Jeremy Stretch
2018-07-18 15:10:12 -04:00
parent d665d4d62a
commit 6e037e91d3
3 changed files with 6 additions and 18 deletions

View File

@@ -65,10 +65,11 @@
<td>Tenant</td>
<td>
{% if ipaddress.tenant %}
{% if ipaddress.tenant.group %}
<a href="{{ ipaddress.tenant.group.get_absolute_url }}">{{ ipaddress.tenant.group }}</a>
<i class="fa fa-angle-right"></i>
{% endif %}
<a href="{{ ipaddress.tenant.get_absolute_url }}">{{ ipaddress.tenant }}</a>
{% elif ipaddress.vrf.tenant %}
<a href="{{ ipaddress.vrf.tenant.get_absolute_url }}">{{ ipaddress.vrf.tenant }}</a>
<label class="label label-info">Inherited</label>
{% else %}
<span class="text-muted">None</span>
{% endif %}