Merge pull request #19400 from netbox-community/19397-graphql-IPRangeFilter-role

Fixes #19397: Fix filtering IP ranges by role in GraphQL API
This commit is contained in:
bctiemann 2025-05-12 14:05:13 -04:00 committed by GitHub
commit 6af4f5d7ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,9 +168,7 @@ class IPRangeFilter(ContactFilterMixin, TenancyFilterMixin, PrimaryModelFilterMi
status: Annotated['IPRangeStatusEnum', strawberry.lazy('ipam.graphql.enums')] | None = (
strawberry_django.filter_field()
)
role: Annotated['IPAddressRoleEnum', strawberry.lazy('ipam.graphql.enums')] | None = (
strawberry_django.filter_field()
)
role: Annotated['RoleFilter', strawberry.lazy('ipam.graphql.filters')] | None = strawberry_django.filter_field()
mark_utilized: FilterLookup[bool] | None = strawberry_django.filter_field()
@strawberry_django.filter_field()