mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 00:28:16 -06:00
added two columns to Interfaces table, showing up tagged and untagged vlans
This commit is contained in:
parent
1a8eea5aa9
commit
1a20e0b1ac
@ -585,6 +585,8 @@
|
||||
<th>Name</th>
|
||||
<th>LAG</th>
|
||||
<th>Description</th>
|
||||
<th>Tagged vlans</th>
|
||||
<th>Untagged vlan</th>
|
||||
<th>MTU</th>
|
||||
<th>Mode</th>
|
||||
<th>Cable</th>
|
||||
|
@ -38,6 +38,23 @@
|
||||
{% endfor %}
|
||||
</td>
|
||||
|
||||
{# Tagged ports #}
|
||||
<td>
|
||||
{% if iface.tagged_vlans.all %}
|
||||
{% for tag in iface.tagged_vlans.all %}
|
||||
<a href="{% url 'ipam:vlan' tag.id %}">{{ tag }}</a>
|
||||
<br>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
{# Untagged ports #}
|
||||
<td>
|
||||
{% if iface.untagged_vlan %}
|
||||
{{ iface.untagged_vlan }}
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
{# MTU #}
|
||||
<td>{{ iface.mtu|default:"—" }}</td>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user