Make Prefixes Collapsible #4985

Open
opened 2025-12-29 19:22:52 +01:00 by adam · 4 comments
Owner

Originally created by @pk-lee-developer on GitHub (Jun 9, 2021).

NetBox version

v2.11.4

Feature type

Change to existing functionality

Proposed functionality

Under "Prefixes", when child Prefixes are created, it is listed under the parent Prefixes. Is it possible to introduce collapsible parent Prefixes when there is child Prefixes under it. Can it also be fully collapse until an user click to expand it?

e.g.
10.0.0.0/8 ++ <--- collapsible main parent.
-- 10.0.0.0/23 ++ <--- collapsible sub parent.
--- 10.0.0.12/30
--- 10.0.0.32/30

Default view for above.
10.0.0.0/8 ++ <- Default view for parent with child Prefixes under it.

Use case

A organization that need to setup large amount of mix parent and child Prefixes. it makes the Prefixes page very large and hard to read. A collapsible Prefixes will make the Prefixes page easier to read and navigate.

Database changes

This should be a HTML code display change and no database change.

External dependencies

None

Originally created by @pk-lee-developer on GitHub (Jun 9, 2021). ### NetBox version v2.11.4 ### Feature type Change to existing functionality ### Proposed functionality Under "Prefixes", when child Prefixes are created, it is listed under the parent Prefixes. Is it possible to introduce collapsible parent Prefixes when there is child Prefixes under it. Can it also be fully collapse until an user click to expand it? e.g. 10.0.0.0/8 ++ <--- collapsible main parent. -- 10.0.0.0/23 ++ <--- collapsible sub parent. --- 10.0.0.12/30 --- 10.0.0.32/30 Default view for above. 10.0.0.0/8 ++ <- Default view for parent with child Prefixes under it. ### Use case A organization that need to setup large amount of mix parent and child Prefixes. it makes the Prefixes page very large and hard to read. A collapsible Prefixes will make the Prefixes page easier to read and navigate. ### Database changes This should be a HTML code display change and no database change. ### External dependencies None
adam added the type: featurenetboxneeds milestonestatus: backlogcomplexity: high labels 2025-12-29 19:22:52 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 10, 2021):

There are two issues with this:

  1. It requires a fair bit of work on the front end to support, though I can't say how much. @checktheroads might be able to offer some insight.
  2. You need a plan for pagination. For example, suppose you expand a /20 to find it's chock full of /31 prefixes. Do we fetch and display on the page all 2,048 child prefixes at once? That's probably going to be of limited utility to the user.

Ultimately IMO you don't gain any real advantage over just following the link to the child prefixes list.

@jeremystretch commented on GitHub (Jun 10, 2021): There are two issues with this: 1. It requires a fair bit of work on the front end to support, though I can't say how much. @checktheroads might be able to offer some insight. 2. You need a plan for pagination. For example, suppose you expand a /20 to find it's chock full of /31 prefixes. Do we fetch and display on the page all 2,048 child prefixes at once? That's probably going to be of limited utility to the user. Ultimately IMO you don't gain any real advantage over just following the link to the child prefixes list.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 10, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Aug 10, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@github-actions[bot] commented on GitHub (Sep 9, 2021):

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.

@github-actions[bot] commented on GitHub (Sep 9, 2021): This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Author
Owner

@jeremystretch commented on GitHub (Dec 18, 2021):

Reopening this as I think it may be feasible with the recent introduction of HTMX.

@jeremystretch commented on GitHub (Dec 18, 2021): Reopening this as I think it may be feasible with the recent introduction of HTMX.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4985