[PR #15041] [MERGED] fix: performance for get__available_ips for prefix #14506

Closed
opened 2025-12-29 23:24:52 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15041
Author: @Smixi
Created: 2/5/2024
Status: Merged
Merged: 2/5/2024
Merged by: @jeremystretch

Base: developHead: 14500-perf-prefix


📝 Commits (1)

  • d8bee6e fix: performance for get__available_ips for prefix

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 netbox/ipam/models/ip.py (+3 -3)

📄 Description

Fixes: #14500

Use a list to add child rangers, then merge convert it into ipset. This is much faster because how netaddr.IPSet works.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15041 **Author:** [@Smixi](https://github.com/Smixi) **Created:** 2/5/2024 **Status:** ✅ Merged **Merged:** 2/5/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14500-perf-prefix` --- ### 📝 Commits (1) - [`d8bee6e`](https://github.com/netbox-community/netbox/commit/d8bee6eda118ad58c5e49e048acf07d3fb21f952) fix: performance for get__available_ips for prefix ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/models/ip.py` (+3 -3) </details> ### 📄 Description ### Fixes: #14500 Use a list to add child rangers, then merge convert it into ipset. This is much faster because how netaddr.IPSet works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:52 +01:00
adam closed this issue 2025-12-29 23:24:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14506