Skip to content

Commit 81fa426

Browse files
kprince28jeremystretch
authored andcommitted
add tags field in L2VPN Termination
1 parent 35be4f0 commit 81fa426

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

netbox/ipam/forms/model_forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ class L2VPNTerminationForm(NetBoxModelForm):
818818

819819
class Meta:
820820
model = L2VPNTermination
821-
fields = ('l2vpn', )
821+
fields = ('l2vpn', 'tags')
822822

823823
def __init__(self, *args, **kwargs):
824824
instance = kwargs.get('instance')

netbox/ipam/tables/l2vpn.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ class L2VPNTerminationTable(NetBoxTable):
7373
orderable=False,
7474
verbose_name=_('Object Site')
7575
)
76+
tags = columns.TagColumn(
77+
url_name='ipam:l2vpntermination_list'
78+
)
7679

7780
class Meta(NetBoxTable.Meta):
7881
model = L2VPNTermination
7982
fields = (
8083
'pk', 'l2vpn', 'assigned_object_type', 'assigned_object', 'assigned_object_parent', 'assigned_object_site',
81-
'actions',
84+
'tags', 'actions',
8285
)
8386
default_columns = (
8487
'pk', 'l2vpn', 'assigned_object_type', 'assigned_object_parent', 'assigned_object', 'actions',

0 commit comments

Comments
 (0)