Skip to content

Block availability and creation of IPs in IP Ranges #11678

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

Closed
iamjla opened this issue Feb 6, 2023 · 2 comments
Closed

Block availability and creation of IPs in IP Ranges #11678

iamjla opened this issue Feb 6, 2023 · 2 comments
Labels
status: duplicate This issue has already been raised type: feature Introduction of new functionality to the application

Comments

@iamjla
Copy link

iamjla commented Feb 6, 2023

NetBox version

v3.4.2

Feature type

Change to existing functionality

Proposed functionality

We would suggest "IP Ranges" gets the following 2 new booleans:

  • "Exclude from Available IPs"
    This still allows creation of IPs of this IP Range but prohibits them from being used in available ip logic (API&UI)

  • "Block creation of IPs in this Range"
    As the name suggests, any IP creation in this range should be blocked

Use case

General IP Ranges for DHCP
or
Exclude ranges for automatic short lived DHCP deployments to avoid collisions which later get proper IPs assigned
and
To avoid blocking e.g. 2000 (or IPv6-scale amounts of) IPs in the database manually

Something similar came up in #7516 though it was about utilization and making them unavailable for other uses.

#9763 captures a possible UI solution

Database changes

No response

External dependencies

No response

@iamjla iamjla added the type: feature Introduction of new functionality to the application label Feb 6, 2023
@do9xe
Copy link

do9xe commented Feb 7, 2023

We're also looking into how we could leverage the ranges to define DHCP-Pools for our deployments. I also thought about using the "is a pool" flag, but it has another purpose. I'd love to see a possibility to model DHCP-Ranges in NetBox.
After reading through #7516 and #9763 I think a combination of all three could be a viable solution. Having the ranges blocking the utilization, showing up in the IP address list and having the possibility to block the creation of IPs would be a good combination. Especially making the "block creation" option optional for DHCP-Ranges so one could create static DHCP-bindings within a pool.

@jsenecal jsenecal added the status: duplicate This issue has already been raised label Feb 15, 2023
@jsenecal
Copy link
Contributor

Thinking this should be handled by what would be done in #9763.

Feel free to discuss your booleans in there, or, any additional requirements.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants