1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Display member interfaces when viewing VC master device

This commit is contained in:
Jeremy Stretch
2017-12-15 15:24:03 -05:00
parent da2bff691b
commit 911ce3f047
2 changed files with 29 additions and 9 deletions

View File

@@ -1,9 +1,11 @@
<tr class="interface{% if not iface.enabled %} danger{% elif iface.connection and iface.connection.connection_status or iface.circuit_termination %} success{% elif iface.connection and not iface.connection.connection_status %} info{% elif iface.is_virtual %} warning{% endif %}" id="iface_{{ iface.name }}">
{# Checkbox #}
{# Checkbox (exclude VC members) #}
{% if perms.dcim.change_interface or perms.dcim.delete_interface %}
<td class="pk">
<input name="pk" type="checkbox" value="{{ iface.pk }}" />
{% if iface.device == device %}
<input name="pk" type="checkbox" value="{{ iface.pk }}" />
{% endif %}
</td>
{% endif %}