Przeglądaj źródła

Display the interface's untagged VLAN in the attributes table

Jeremy Stretch 2 miesięcy temu
rodzic
commit
e1684fb645
1 zmienionych plików z 5 dodań i 0 usunięć
  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>
               <th scope="row">{% trans "Q-in-Q SVLAN" %}</th>
               <td>{{ object.qinq_svlan|linkify|placeholder }}</td>
               <td>{{ object.qinq_svlan|linkify|placeholder }}</td>
             </tr>
             </tr>
+          {% elif object.mode %}
+            <tr>
+              <th scope="row">{% trans "Untagged VLAN" %}</th>
+              <td>{{ object.untagged_vlan|linkify|placeholder }}</td>
+            </tr>
           {% endif %}
           {% endif %}
           <tr>
           <tr>
             <th scope="row">{% trans "Transmit power (dBm)" %}</th>
             <th scope="row">{% trans "Transmit power (dBm)" %}</th>