Skip to content

No longer possible to query for prefixes or IP ranges containing another prefix via graphql (Netbox 4.3) #19812

Open
@mraerino

Description

@mraerino

Deployment Type

Self-hosted

NetBox Version

v4.3.3

Python Version

3.12

Steps to Reproduce

In Netbox 4.2.9 it was possible to run a query like this, which returns prefixes containing another prefix:

query listContainingPrefixes($prefix: String!) {
  prefix_list(filters: {contains: $prefix}) {
    id
    prefix
  }
  ip_range_list(filters: {contains: $prefix}) {
    id
    start_address
    end_address
  }
}

This is no longer possible on Netbox 4.3, the contains filter has been removed from the schema.

Expected Behavior

A graphql filter on the Prefix and IPRange models that allows querying for instances containing a certain prefix.

Observed Behavior

No filter attribute to query for instances containing a prefix

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: GraphQLtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions