diff --git a/netbox/dcim/graphql/filters.py b/netbox/dcim/graphql/filters.py index 9e5915146..8a81f3110 100644 --- a/netbox/dcim/graphql/filters.py +++ b/netbox/dcim/graphql/filters.py @@ -550,6 +550,10 @@ class InterfaceFilter( strawberry_django.filter_field() ) + @strawberry_django.filter_field + def cabled(self, value: bool, prefix: str): + return Q(**{f'{prefix}cable__isnull': (not value)}) + @strawberry_django.filter_field def connected(self, queryset, value: bool, prefix: str): if value is True: