浏览代码

Display the interface's untagged VLAN in the attributes table

Jeremy Stretch 2 月之前
父节点
当前提交
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>