Просмотр исходного кода

Display the interface's untagged VLAN in the attributes table

Jeremy Stretch 1 день назад
Родитель
Сommit
e1684fb645
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      netbox/templates/dcim/interface.html

+ 5 - 0
netbox/templates/dcim/interface.html

@@ -86,6 +86,11 @@
               <th scope="row">{% trans "Q-in-Q SVLAN" %}</th>
               <td>{{ object.qinq_svlan|linkify|placeholder }}</td>
             </tr>
+          {% elif object.mode %}
+            <tr>
+              <th scope="row">{% trans "Untagged VLAN" %}</th>
+              <td>{{ object.untagged_vlan|linkify|placeholder }}</td>
+            </tr>
           {% endif %}
           <tr>
             <th scope="row">{% trans "Transmit power (dBm)" %}</th>