mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Fixes #2673: Fix exception on LLDP neighbors view for device with a circuit connected
This commit is contained in:
parent
2f1db2fdf3
commit
40cb576e11
@ -6,6 +6,7 @@ v2.5.2 (FUTURE)
|
|||||||
|
|
||||||
## Bug Fixes
|
## Bug Fixes
|
||||||
|
|
||||||
|
* [#2673](https://github.com/digitalocean/netbox/issues/2673) - Fix exception on LLDP neighbors view for device with a circuit connected
|
||||||
* [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits
|
* [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits
|
||||||
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
||||||
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
||||||
|
@ -22,13 +22,20 @@
|
|||||||
{% for iface in interfaces %}
|
{% for iface in interfaces %}
|
||||||
<tr id="{{ iface.name }}">
|
<tr id="{{ iface.name }}">
|
||||||
<td>{{ iface }}</td>
|
<td>{{ iface }}</td>
|
||||||
{% if iface.connected_endpoint %}
|
{% if iface.connected_endpoint.device %}
|
||||||
<td class="configured_device" data="{{ iface.connected_endpoint.device }}">
|
<td class="configured_device" data="{{ iface.connected_endpoint.device }}">
|
||||||
<a href="{% url 'dcim:device' pk=iface.connected_endpoint.device.pk %}">{{ iface.connected_endpoint.device }}</a>
|
<a href="{% url 'dcim:device' pk=iface.connected_endpoint.device.pk %}">{{ iface.connected_endpoint.device }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="configured_interface" data="{{ iface.connected_endpoint }}">
|
<td class="configured_interface" data="{{ iface.connected_endpoint }}">
|
||||||
<span title="{{ iface.connected_endpoint.get_form_factor_display }}">{{ iface.connected_endpoint }}</span>
|
<span title="{{ iface.connected_endpoint.get_form_factor_display }}">{{ iface.connected_endpoint }}</span>
|
||||||
</td>
|
</td>
|
||||||
|
{% elif iface.connected_endpoint.circuit %}
|
||||||
|
{% with circuit=iface.connected_endpoint.circuit %}
|
||||||
|
<td colspan="2">
|
||||||
|
<i class="fa fa-fw fa-globe" title="Circuit"></i>
|
||||||
|
<a href="{{ circuit.get_absolute_url }}">{{ circuit.provider }} {{ circuit }}</a>
|
||||||
|
</td>
|
||||||
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<td colspan="2">None</td>
|
<td colspan="2">None</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user