From c74fc2c6a553a93c38a70b252762a17cfbe060a3 Mon Sep 17 00:00:00 2001 From: Thor Dreier-Hansen <43479811+thordreier@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:23:42 +0200 Subject: [PATCH] limits vlans on interface tables --- netbox/dcim/tables/template_code.py | 2 +- netbox/templates/dcim/interface.html | 2 +- netbox/templates/virtualization/vminterface.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index ee0956f2c..5dcc55441 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -57,7 +57,7 @@ INTERFACE_FHRPGROUPS = """ INTERFACE_TAGGED_VLANS = """ {% if record.mode == 'tagged' %} {% if value.count > 3 %} - {{ value.count }} + {{ value.count }} {% else %} {% for vlan in value.all %} {{ vlan }}
diff --git a/netbox/templates/dcim/interface.html b/netbox/templates/dcim/interface.html index 6aa90a154..016a6c890 100644 --- a/netbox/templates/dcim/interface.html +++ b/netbox/templates/dcim/interface.html @@ -351,7 +351,7 @@
-
+
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
diff --git a/netbox/templates/virtualization/vminterface.html b/netbox/templates/virtualization/vminterface.html index a45fa4056..0d679680d 100644 --- a/netbox/templates/virtualization/vminterface.html +++ b/netbox/templates/virtualization/vminterface.html @@ -96,7 +96,7 @@
-
+
{% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}