mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
netbox-community/netbox#7542: Add VLAN Group column to IP Prefix table
This commit is contained in:
parent
98cc36c458
commit
660fc23e15
@ -206,6 +206,11 @@ class PrefixTable(BaseTable):
|
|||||||
site = tables.Column(
|
site = tables.Column(
|
||||||
linkify=True
|
linkify=True
|
||||||
)
|
)
|
||||||
|
vlan_group = tables.Column(
|
||||||
|
accessor='vlan__group',
|
||||||
|
linkify=True,
|
||||||
|
verbose_name='VLAN Group'
|
||||||
|
)
|
||||||
vlan = tables.Column(
|
vlan = tables.Column(
|
||||||
linkify=True,
|
linkify=True,
|
||||||
verbose_name='VLAN'
|
verbose_name='VLAN'
|
||||||
@ -230,8 +235,8 @@ class PrefixTable(BaseTable):
|
|||||||
class Meta(BaseTable.Meta):
|
class Meta(BaseTable.Meta):
|
||||||
model = Prefix
|
model = Prefix
|
||||||
fields = (
|
fields = (
|
||||||
'pk', 'id', 'prefix', 'prefix_flat', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role',
|
'pk', 'id', 'prefix', 'prefix_flat', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan_group',
|
||||||
'is_pool', 'mark_utilized', 'description', 'tags',
|
'vlan', 'role', 'is_pool', 'mark_utilized', 'description', 'tags',
|
||||||
)
|
)
|
||||||
default_columns = (
|
default_columns = (
|
||||||
'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'description',
|
'pk', 'prefix', 'status', 'children', 'vrf', 'utilization', 'tenant', 'site', 'vlan', 'role', 'description',
|
||||||
|
Loading…
Reference in New Issue
Block a user