From 4456c488f106614ddf98c406018024f9c86add50 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Tue, 7 Jan 2025 15:58:42 -0500 Subject: [PATCH] Change PrefixTable.vlan to represent the VLAN ID rather than the VLAN object, to enable more useful sorting by VLAN ID rather than site-grouped VLAN objects --- netbox/ipam/tables/ip.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netbox/ipam/tables/ip.py b/netbox/ipam/tables/ip.py index dbbeb3454..bc343b175 100644 --- a/netbox/ipam/tables/ip.py +++ b/netbox/ipam/tables/ip.py @@ -200,8 +200,9 @@ class PrefixTable(TenancyColumnsMixin, NetBoxTable): verbose_name=_('VLAN Group') ) vlan = tables.Column( + accessor='vlan__vid', linkify=True, - verbose_name=_('VLAN') + verbose_name=_('VLAN ID') ) role = tables.Column( verbose_name=_('Role'),