Skip to content

Commit 8bb1a68

Browse files
committed
Fixes #18376: Include tagged VLANs in interfaces list for Q-in-Q interfaces
1 parent a79d869 commit 8bb1a68

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

netbox/dcim/tables/template_code.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,18 @@
6969
"""
7070

7171
INTERFACE_TAGGED_VLANS = """
72-
{% if record.mode == 'tagged' %}
72+
{% load i18n %}
73+
{% if record.mode == 'access' %}
74+
{% elif record.mode == 'tagged-all' %}
75+
{% trans "All" %}
76+
{% else %}
7377
{% if value.count > 3 %}
7478
<a href="{% url 'ipam:vlan_list' %}?{{ record|meta:"model_name" }}_id={{ record.pk }}">{{ value.count }} VLANs</a>
7579
{% else %}
7680
{% for vlan in value.all %}
77-
<a href="{{ vlan.get_absolute_url }}">{{ vlan }}</a><br />
81+
<a href="{{ vlan.get_absolute_url }}">{{ vlan }}</a><br />
7882
{% endfor %}
7983
{% endif %}
80-
{% elif record.mode == 'tagged-all' %}
81-
All
8284
{% endif %}
8385
"""
8486

0 commit comments

Comments
 (0)