diff --git a/netbox/ipam/filtersets.py b/netbox/ipam/filtersets.py index 033f0a4dc90..f65aba407da 100644 --- a/netbox/ipam/filtersets.py +++ b/netbox/ipam/filtersets.py @@ -1080,7 +1080,7 @@ def filter_interface_id(self, queryset, name, value): return queryset.filter( Q(interfaces_as_tagged=value) | Q(interfaces_as_untagged=value) - ) + ).distinct() def filter_vminterface_id(self, queryset, name, value): if value is None: @@ -1088,7 +1088,7 @@ def filter_vminterface_id(self, queryset, name, value): return queryset.filter( Q(vminterfaces_as_tagged=value) | Q(vminterfaces_as_untagged=value) - ) + ).distinct() class ServiceTemplateFilterSet(NetBoxModelFilterSet):