-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement reserved IP ranges #9763
Comments
Can you elaborate on this? How do you anticipate this working? What would the UI look like with this change in place?
This has already been captured in #7947. |
I'm no UI designer but from my viewpoint in IP lists (doesn't matter if it is in prefix, filter or just all IPs list) there could be placeholders for IP ranges just like there are now for available ranges. Like this: Wether to show IP range in lists or not could be configured with either a checkbox or dropdown list inside IP range edit menu. With dropdown this functionality can be extended with reasons why range is reserved/utilized (if it is just utilized or intended to be used for a special purpose). If there is an IP address within range it should be showed too. Like this: Reserved ranges should be treated like available on-click - user can assign an IP from reserved range by clicking on it's placeholder in the list. But there should be some kind of a prompt when new IP is on reserved range. There also could be a checkbox in IP range edit menu toggling if IP range is displayed in IP lists or not. Defaults to not so that nothing is changed for users not needing this functionality. |
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. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
I'm unsure about the maintainers' opinion about this feature, since the tag removal on Aug. 8. The flowchart on feature intake seems to have lost track on "In scope for core?" In any case, we also see a huge potential in this. Right now we have quite vast (/16 and larger) networks containing different DHCP scopes together with blocks of static assignments. It's a bit unwieldy to bulk create 10k addresses with status DHCP to have the usage calculator work and make sure nobody accidentally places a static IP in the DHCP scope. |
Same opinion here, we have lot of ranges for DHCP and this will be a very good feature to avoid people assigning these IPs |
@jsenecal closed the above mentioned issue with the notice to continue here. We've also got some proposals to shape this feature: We would suggest "IP Ranges" gets the following 2 new booleans to add this functionality:
tl;dr of the use case is saving on database entrys, as a lot comments in this issue mention. For a full explanation from our standing i'd suggest taking a look at #11678 |
I was just looking at the code and found a way how this might be possible. I'd like to look into this and propose a pull-request, if this feature request is accepted. |
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. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
According to the contribution guide I'm supposed to wait.
Now this FR/Issue is marked as pending closure again. I'm not quite sure if anyone from the maintainers has an eye on this. |
I see I should not be "bumping this" but I believe something went wrong here. Can this issue be under review and pending closure at the same time? It was not reviewed by maintainers and this will just lead to a creation of a new duplicate feature request after this one is closed. |
Going to mark this as needs milestone as there clearly is a decent amount of interest in this. @nem1989 Thank you for trying to follow the rules, however a thing to keep in mind is that pending closure is automatically added when there hasn't been much activity on an issue in a certain amount of time. |
Is there any updates on this? I'm keeping this page in bookmarks and checking it every month. |
We have mixed usage prefixes where one part of the prefix is allocated to openstack which deploys from that range using DHCP while other parts of the range are manually configured for different infrastructure. Doing what CharlesSerret suggests would be best from my and my teams point of view.
|
To summarize this FR to be clear about the intended changes, this FR will:
Proposed changes:
This sound somewhat reasonable to everyone? |
Sounds great! There should be a link to a range itself from IP list views. Clicking available IP creates a new IP and clicking reserved IP would open a range view. It also might be nice to have an IP range description/role indicator of some sort in IP list views so that one could see WHY is it reserved. For example: |
I think it would be nice if the indicator displayed the status from the range object, instead of just showing a generic "reserved" keyword. |
NetBox version
v3.2.6
Feature type
New functionality
Proposed functionality
Improve IP ranges functionality by implementing these features:
Use case
This would be extremely useful for DHCP ranges for instance. Right now nothing stops netbox users from using "free" IP addresses reserved for particular IP ranges.
Example: I have an IP range defined which describes DHCP range in one of my subnets, but when browsing IP address lists nothing indicates that these addresses are reserved, thus they can be assigned to any device or VM leading to an IP conflict.
There is a workaround: bulk create IP addresses for the whole range and set a corresponding role for them all. But in this scenario users have to manually match ranges and IP addresses in case of range changes and accidents may happen due to human factor. Also a lot of unnecessary information is stored in the database and displayed in IP lists especially for large IPv6 prefixes where there can be thousands of reserved addresses in one prefix.
With my proposal implemented one could mark an IP range as reserved and users would not be allowed to allocate addresses from reserved ranges anymore or atleast will be notified that these addresses are reserved. It would also decrease amount of excessive information in IP lists, dramatically in some cases.
These features are optional and will not break existing databases.
Database changes
Some new boolean fields for IP range description will be needed to implement this.
External dependencies
No response
The text was updated successfully, but these errors were encountered: