GraphQL queries for parent/child prefixes and ip addresses #11003

Open
opened 2025-12-29 21:39:02 +01:00 by adam · 3 comments
Owner

Originally created by @clinta on GitHub (Apr 9, 2025).

NetBox version

v4.2.6

Feature type

New functionality

Proposed functionality

Graphql should provide the ability to query for parent/child prefixes of prefixes, and parent prefixes of ip addresses and child IP addresses of prefixes.

Use case

This is a common thing to need to query when building automation against netbox.

Database changes

None

External dependencies

None

Originally created by @clinta on GitHub (Apr 9, 2025). ### NetBox version v4.2.6 ### Feature type New functionality ### Proposed functionality Graphql should provide the ability to query for parent/child prefixes of prefixes, and parent prefixes of ip addresses and child IP addresses of prefixes. ### Use case This is a common thing to need to query when building automation against netbox. ### Database changes None ### External dependencies None
adam added the type: featurestatus: blockedcomplexity: mediumnetbox labels 2025-12-29 21:39:02 +01:00
Author
Owner

@bctiemann commented on GitHub (Apr 9, 2025):

@clinta This might be affected by in-progress work in NetBox v4.3, which will be releasing as beta soon. Let's reevaluate this in that context.

@bctiemann commented on GitHub (Apr 9, 2025): @clinta This might be affected by in-progress work in NetBox v4.3, which will be releasing as beta soon. Let's reevaluate this in that context.
Author
Owner

@jeremystretch commented on GitHub (Apr 10, 2025):

Blocked by #7845

@jeremystretch commented on GitHub (Apr 10, 2025): Blocked by #7845
Author
Owner

@clinta commented on GitHub (Apr 10, 2025):

I had a fairly small PR which simply implements the same logic used in the web view in graphql. The database changes discussed in #7845 are interesting, but that's a pretty serious change that looks like it's going to take a long time.

I'd ask you to reconsider my PR as a temporary solution while this bigger issue is worked on. My PR makes no database changes, and updates to that graphql code would be very similar to the updates required for the webui if/when that db change happens.

@clinta commented on GitHub (Apr 10, 2025): I had a fairly small PR which simply implements the same logic used in the web view in graphql. The database changes discussed in #7845 are interesting, but that's a pretty serious change that looks like it's going to take a long time. I'd ask you to reconsider my PR as a temporary solution while this bigger issue is worked on. My PR makes no database changes, and updates to that graphql code would be very similar to the updates required for the webui if/when that db change happens.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11003