[PR #2702] [CLOSED] Toggle for available child prefixes and ip addresses in prefix view #12423

Closed
opened 2025-12-29 22:21:25 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2702
Author: @Grokzen
Created: 12/18/2018
Status: Closed

Base: developHead: feature/hide-available-ip-addresses-in-prefix-view


📝 Commits (1)

  • 95ce232 Added buttons and filtering of available IP Addresses and child prefixes in prefix view

📊 Changes

2 files changed (+11 additions, -3 deletions)

View changed files

📝 netbox/ipam/views.py (+5 -3)
📝 netbox/templates/ipam/prefix.html (+6 -0)

📄 Description

Fixes:

Resolves #2365 & #2598

Summary:

I pulled up this code from our internal fork as it should be generic enough and solves 2 issues.

Branch is still WIP as i have not yet validated it against the latest code release.

  • Add 2 new buttons, Hide available and Show available to Prefix view.
  • Add in logic into the prefix view to only include IP Addresses if we want to show available addresses
  • This changes the default mode to NOT show available IPAddresses in the prefix view.

Examples of the new UI can be seen here https://github.com/digitalocean/netbox/issues/2598#issuecomment-447552918


🔄 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/2702 **Author:** [@Grokzen](https://github.com/Grokzen) **Created:** 12/18/2018 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `feature/hide-available-ip-addresses-in-prefix-view` --- ### 📝 Commits (1) - [`95ce232`](https://github.com/netbox-community/netbox/commit/95ce232076f032f52084b81b9729927f59e98f8a) Added buttons and filtering of available IP Addresses and child prefixes in prefix view ### 📊 Changes **2 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/views.py` (+5 -3) 📝 `netbox/templates/ipam/prefix.html` (+6 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: Resolves #2365 & #2598 <!-- Please include a summary of the proposed changes below. --> ### Summary: I pulled up this code from our internal fork as it should be generic enough and solves 2 issues. Branch is still WIP as i have not yet validated it against the latest code release. - Add 2 new buttons, Hide available and Show available to Prefix view. - Add in logic into the prefix view to only include IP Addresses if we want to show available addresses - This changes the default mode to NOT show available IPAddresses in the prefix view. Examples of the new UI can be seen here https://github.com/digitalocean/netbox/issues/2598#issuecomment-447552918 --- <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 22:21:25 +01:00
adam closed this issue 2025-12-29 22:21:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12423