Skip to content

Commit 7cc2154

Browse files
committed
Fixes #15127: Add missing group column on tunnels table
1 parent e84e2a7 commit 7cc2154

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

netbox/vpn/tables/tunnels.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class TunnelTable(TenancyColumnsMixin, NetBoxTable):
4040
verbose_name=_('Name'),
4141
linkify=True
4242
)
43+
group = tables.Column(
44+
verbose_name=_('Group'),
45+
linkify=True
46+
)
4347
status = columns.ChoiceFieldColumn(
4448
verbose_name=_('Status')
4549
)
@@ -63,10 +67,10 @@ class TunnelTable(TenancyColumnsMixin, NetBoxTable):
6367
class Meta(NetBoxTable.Meta):
6468
model = Tunnel
6569
fields = (
66-
'pk', 'id', 'name', 'status', 'encapsulation', 'ipsec_profile', 'tenant', 'tenant_group', 'tunnel_id',
67-
'termination_count', 'description', 'comments', 'tags', 'created', 'last_updated',
70+
'pk', 'id', 'name', 'group', 'status', 'encapsulation', 'ipsec_profile', 'tenant', 'tenant_group',
71+
'tunnel_id', 'termination_count', 'description', 'comments', 'tags', 'created', 'last_updated',
6872
)
69-
default_columns = ('pk', 'name', 'status', 'encapsulation', 'tenant', 'terminations_count')
73+
default_columns = ('pk', 'name', 'group', 'status', 'encapsulation', 'tenant', 'terminations_count')
7074

7175

7276
class TunnelTerminationTable(TenancyColumnsMixin, NetBoxTable):

0 commit comments

Comments
 (0)