GraphQL filtering IP Addresses by assigned no longer works #11185

Closed
opened 2025-12-29 21:41:39 +01:00 by adam · 2 comments
Owner

Originally created by @llamafilm on GitHub (May 16, 2025).

Originally assigned to: @jnovinger on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.12

Steps to Reproduce

Run this GraphQL query

{
    ip_address_list(filters: {assigned: true}) {
        id
        address
    }
}

Expected Behavior

This works fine in 4.2

Observed Behavior

Error: "Field 'assigned' is not defined by type 'IPAddressFilter'."

I looked through the available filters and couldn't find a workaround.

Originally created by @llamafilm on GitHub (May 16, 2025). Originally assigned to: @jnovinger on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.1 ### Python Version 3.12 ### Steps to Reproduce Run this GraphQL query ``` { ip_address_list(filters: {assigned: true}) { id address } } ``` ### Expected Behavior This works fine in 4.2 ### Observed Behavior ``` Error: "Field 'assigned' is not defined by type 'IPAddressFilter'." ``` I looked through the available filters and couldn't find a workaround.
adam added the type: bugstatus: acceptedtopic: GraphQLseverity: low labels 2025-12-29 21:41:39 +01:00
adam closed this issue 2025-12-29 21:41:40 +01:00
Author
Owner

@llamafilm commented on GitHub (May 16, 2025):

Another variation, this filter works in 4.2, but in 4.3 it returns all IP Addresses.

{
    ip_address_list(filters: {assigned_object_id: null}) {
        id
        address
    }
}
@llamafilm commented on GitHub (May 16, 2025): Another variation, this filter works in 4.2, but in 4.3 it returns all IP Addresses. ``` { ip_address_list(filters: {assigned_object_id: null}) { id address } } ```
Author
Owner

@jnovinger commented on GitHub (May 16, 2025):

Another variation, this filter works in 4.2, but in 4.3 it returns all IP Addresses.

{
    ip_address_list(filters: {assigned_object_id: null}) {
        id
        address
    }
}

@llamafilm , with respect to this query, it looks there's a larger cleanup to be done with how we filter on null. I'm going to file that as a separate housekeeping issue.

@jnovinger commented on GitHub (May 16, 2025): > Another variation, this filter works in 4.2, but in 4.3 it returns all IP Addresses. > > ``` > { > ip_address_list(filters: {assigned_object_id: null}) { > id > address > } > } > ``` @llamafilm , with respect to this query, it looks there's a larger cleanup to be done with how we filter on `null`. I'm going to file that as a separate housekeeping issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11185