API ipam.ip-address.filter and multiple parent prefixes unreliable #10703

Closed
opened 2025-12-29 21:34:58 +01:00 by adam · 3 comments
Owner

Originally created by @gurubert on GitHub (Jan 28, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.2

Python Version

3.11

Steps to Reproduce

A Python3 client script that uses the pynetbox REST API client implementation fetches IP addresses from Netbox via the API call netbox.ipam.ip_addresses.filter(parent = prefixes) where prefixes is a list of IP networks as strings.

Expected Behavior

Every call of that script returns the expected number of IP addresses.

Observed Behavior

Sometimes, unfortunately only randomly, some IP addresses (a couple of dozen out of nearly 5000) are missing.

netbox.ipam.ip_addresses.all() reliably returns all IPs every time.

netbox.ipam.ip_addresses.filter(parent = prefix) with only one prefix at a time also seems to reliably return the requested IPs.

Originally created by @gurubert on GitHub (Jan 28, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.2 ### Python Version 3.11 ### Steps to Reproduce A Python3 client script that uses the pynetbox REST API client implementation fetches IP addresses from Netbox via the API call netbox.ipam.ip_addresses.filter(parent = prefixes) where prefixes is a list of IP networks as strings. ### Expected Behavior Every call of that script returns the expected number of IP addresses. ### Observed Behavior Sometimes, unfortunately only randomly, some IP addresses (a couple of dozen out of nearly 5000) are missing. netbox.ipam.ip_addresses.all() reliably returns all IPs every time. netbox.ipam.ip_addresses.filter(parent = prefix) with only one prefix at a time also seems to reliably return the requested IPs.
adam added the type: bugpending closurestatus: revisions needed labels 2025-12-29 21:34:58 +01:00
adam closed this issue 2025-12-29 21:34:58 +01:00
Author
Owner

@bctiemann commented on GitHub (Jan 28, 2025):

@gurubert Can this be reproduced using the demo data in https://github.com/netbox-community/netbox-demo-data ?

Or can you develop a reproducible case using a minimal data set?

@bctiemann commented on GitHub (Jan 28, 2025): @gurubert Can this be reproduced using the demo data in https://github.com/netbox-community/netbox-demo-data ? Or can you develop a reproducible case using a minimal data set?
Author
Owner

@github-actions[bot] commented on GitHub (Feb 5, 2025):

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

@github-actions[bot] commented on GitHub (Feb 5, 2025): This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 12, 2025):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@github-actions[bot] commented on GitHub (Feb 12, 2025): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10703