Skip to content

Conversation

@mraerino
Copy link
Contributor

@mraerino mraerino commented Jun 1, 2025

Fixes: #19605

This adds (back) the ability to filter IP addresses by their family, similar to how the REST API or list filtering capabilities in Netbox.

I've tested two queries manually:

query simple {
  ip_address_list(filters: {family: FAMILY_6}) {
    address
    family {
      label
    }
  }
}

query complex {
  device_list(filters: {interfaces: {ip_addresses: {family: FAMILY_6}}}) {
    interfaces {
      ip_addresses {
        address
        family {
          label
        }
      }
    }
  }
}

@mraerino mraerino marked this pull request as ready for review June 1, 2025 13:18
@jeremystretch jeremystretch requested review from a team and jnovinger and removed request for a team June 3, 2025 13:15
@jnovinger jnovinger merged commit 065511f into netbox-community:main Jun 3, 2025
3 checks passed
@mraerino mraerino deleted the fix-graphql-family-filter branch June 4, 2025 11:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow filtering IP addresses by Family in GraphQL API

2 participants