Fixes #20422: Allow Aggregate and Prefix to filter by family in GraphQL #1026

Closed
opened 2026-04-05 19:55:36 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @rinna11 on 10/20/2025

Fixes: #20422

This allows AggregateFilter and PrefixFilter to filter by their family similar with IPAddressFilter.
I've tested the following queries manually:

aggregate_v6: aggregate_list(filters: {family: FAMILY_6}) {
    prefix
}
prefixes_v4: prefix_list(filters: {family: FAMILY_4}) {
    prefix
    role {
      name
    }
    vrf {
      name
    }
    vlan {
      vid
    }
}
*Originally created by @rinna11 on 10/20/2025* <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #20422 This allows `AggregateFilter` and `PrefixFilter` to filter by their family similar with `IPAddressFilter`. I've tested the following queries manually: ```graphql aggregate_v6: aggregate_list(filters: {family: FAMILY_6}) { prefix } prefixes_v4: prefix_list(filters: {family: FAMILY_4}) { prefix role { name } vrf { name } vlan { vid } } ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1026