瀏覽代碼

Differentiate between LAG and virtual interfaces in device interface list

Jeremy Stretch 9 年之前
父節點
當前提交
b42dab3eef
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      netbox/templates/dcim/inc/interface.html

+ 3 - 1
netbox/templates/dcim/inc/interface.html

@@ -19,7 +19,9 @@
     <td>
         <small>{{ iface.mac_address|default:'' }}</small>
     </td>
-    {% if iface.is_virtual %}
+    {% if iface.is_lag %}
+        <td colspan="2" class="text-muted">LAG interface</td>
+    {% elif iface.is_virtual %}
         <td colspan="2" class="text-muted">Virtual interface</td>
     {% elif iface.connection %}
         {% with iface.connected_interface as connected_iface %}