mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #2663: Prevent duplicate interfaces from appearing under VLAN members view
This commit is contained in:
@@ -812,7 +812,7 @@ class VLAN(ChangeLoggedModel, CustomFieldModel):
|
||||
return Interface.objects.filter(
|
||||
Q(untagged_vlan_id=self.pk) |
|
||||
Q(tagged_vlans=self.pk)
|
||||
)
|
||||
).distinct()
|
||||
|
||||
|
||||
class Service(ChangeLoggedModel, CustomFieldModel):
|
||||
|
@@ -430,7 +430,7 @@ class VLANDetailTable(VLANTable):
|
||||
|
||||
class VLANMemberTable(BaseTable):
|
||||
parent = tables.LinkColumn(order_by=['device', 'virtual_machine'])
|
||||
name = tables.Column(verbose_name='Interface')
|
||||
name = tables.LinkColumn(verbose_name='Interface')
|
||||
untagged = tables.TemplateColumn(
|
||||
template_code=VLAN_MEMBER_UNTAGGED,
|
||||
orderable=False
|
||||
|
Reference in New Issue
Block a user