Display "Access VLAN" on hover in interfaces list

This is very useful for us. That way we can see at once what Access VLAN a interfaces is connected to. Originally I also wanted to display Tagged VLANs in the hover, but I couldn't find out how to do it.

We'd be very happy if you'd include this feature.

Thanks a log for netbox!
This commit is contained in:
Tomáš Pospíšek 2018-09-15 18:33:27 +02:00 committed by GitHub
parent b97597c645
commit b950883254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,8 @@
{# Icon and name #} {# Icon and name #}
<td> <td>
<span title="{{ iface.get_form_factor_display }}"> <span title="{{ iface.get_form_factor_display }}{% if iface.untagged_vlan is not None %}
13 Access VLAN: {{ iface.untagged_vlan }}{% endif %}">
<i class="fa fa-fw fa-{% if iface.mgmt_only %}wrench{% elif iface.is_lag %}align-justify{% elif iface.is_virtual %}circle{% elif iface.is_wireless %}wifi{% else %}exchange{% endif %}"></i> <i class="fa fa-fw fa-{% if iface.mgmt_only %}wrench{% elif iface.is_lag %}align-justify{% elif iface.is_virtual %}circle{% elif iface.is_wireless %}wifi{% else %}exchange{% endif %}"></i>
<a href="{{ iface.get_absolute_url }}">{{ iface }}</a> <a href="{{ iface.get_absolute_url }}">{{ iface }}</a>
</span> </span>