Filtering by IP address family not supported in GraphQL #11168

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

Originally created by @mraerino on GitHub (May 13, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.0

Python Version

3.12

Steps to Reproduce

  1. Visit https://demo.netbox.dev/graphql/
  2. Open the Docs pane and search for IPAddressFilter
  3. Discover that there is no field that allows filtering by address family

Expected Behavior

I expect to be able to filter list of ip_address by their family. This was certainly possible in earlier Netbox versions.

Observed Behavior

There is no filter option for IP address family.

Originally created by @mraerino on GitHub (May 13, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.0 ### Python Version 3.12 ### Steps to Reproduce 1. Visit https://demo.netbox.dev/graphql/ 2. Open the `Docs` pane and search for `IPAddressFilter` 3. Discover that there is no field that allows filtering by address family ### Expected Behavior I expect to be able to filter list of `ip_address` by their `family`. This was certainly possible in earlier Netbox versions. ### Observed Behavior There is no filter option for IP address family.
adam added the netbox label 2025-12-29 21:41:15 +01:00
adam closed this issue 2025-12-29 21:41:15 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 13, 2025):

The absence of desired functionality does not indicate a bug. Please submit a feature request.

@jeremystretch commented on GitHub (May 13, 2025): The absence of desired functionality does not indicate a bug. Please submit a feature request.
Author
Owner

@mraerino commented on GitHub (May 14, 2025):

This filter was supported on a previous Netbox release via the family attribute. I expected this to be considered a regression?

@mraerino commented on GitHub (May 14, 2025): This filter was supported on a previous Netbox release via the `family` attribute. I expected this to be considered a regression?
Author
Owner

@mraerino commented on GitHub (May 14, 2025):

here is an example of a query that works on Netbox 4.2.9

{
  device_list(filters: {role: ["backbone-router", "datacenter-router", "spine-router", "leaf-router"]}) {
    name
    interfaces(filters: {name: {exact: "lo0"}}) {
      ip_addresses(filters: {family: 4}) {
        address
      }
    }
  }
}
@mraerino commented on GitHub (May 14, 2025): here is an example of a query that works on Netbox 4.2.9 ```gql { device_list(filters: {role: ["backbone-router", "datacenter-router", "spine-router", "leaf-router"]}) { name interfaces(filters: {name: {exact: "lo0"}}) { ip_addresses(filters: {family: 4}) { address } } } } ```
Author
Owner

@mraerino commented on GitHub (May 19, 2025):

@jeremystretch would you consider reopening the issue or do you really want me to file this as a feature request?

@mraerino commented on GitHub (May 19, 2025): @jeremystretch would you consider reopening the issue or do you really want me to file this as a feature request?
Author
Owner

@mraerino commented on GitHub (May 30, 2025):

Created a feature request: https://github.com/netbox-community/netbox/issues/19605

@mraerino commented on GitHub (May 30, 2025): Created a feature request: https://github.com/netbox-community/netbox/issues/19605
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11168