From 1a20e0b1ac23569d723d0d192a12ca818a65ea63 Mon Sep 17 00:00:00 2001 From: gorban Date: Fri, 7 Feb 2020 16:42:16 +0300 Subject: [PATCH] added two columns to Interfaces table, showing up tagged and untagged vlans --- netbox/templates/dcim/device.html | 2 ++ netbox/templates/dcim/inc/interface.html | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 5ede19d78..fdb5aec08 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -585,6 +585,8 @@ Name LAG Description + Tagged vlans + Untagged vlan MTU Mode Cable diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index 2fe970fd7..aa0d6df85 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -38,6 +38,23 @@ {% endfor %} + {# Tagged ports #} + + {% if iface.tagged_vlans.all %} + {% for tag in iface.tagged_vlans.all %} + {{ tag }} +
+ {% endfor %} + {% endif %} + + + {# Untagged ports #} + + {% if iface.untagged_vlan %} + {{ iface.untagged_vlan }} + {% endif %} + + {# MTU #} {{ iface.mtu|default:"—" }}