Skip to content
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

Add the ability to divide a CIDR range into smaller ranges #89

Closed
bschaatsbergen opened this issue Dec 11, 2023 · 3 comments · Fixed by #100
Closed

Add the ability to divide a CIDR range into smaller ranges #89

bschaatsbergen opened this issue Dec 11, 2023 · 3 comments · Fixed by #100
Labels
help wanted Extra attention is needed new-feature New feature

Comments

@bschaatsbergen
Copy link
Owner

bschaatsbergen commented Dec 11, 2023

The CIDR range division feature allow users to easily divide a given CIDR range into a specified number of smaller subnets.

Why: this enhancement is crucial for users dealing with IP address management, allowing them to efficiently and accurately divide CIDR ranges as needed. Improving this feature will enhance the overall usability of cidr.

Example:

Introduce a divide subcommand, where you specify both a CIDR range as well as an integer to divide it respectively.

$ cidr divide 10.0.0.0/16 9
10.0.0.0/20
10.0.16.0/20
10.0.32.0/20
10.0.48.0/20
10.0.64.0/20
10.0.80.0/20
10.0.96.0/20
10.0.112.0/20
10.0.128.0/20

h/t @steynovich for proposing this enhancement to cidr in a 1-on-1.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer label Dec 11, 2023
@bschaatsbergen bschaatsbergen added new-feature New feature under-consideration Indicates that the topic or suggestion is actively being reviewed and considered for implementation. and removed needs-triage Waiting for first response or review from a maintainer labels Dec 11, 2023
@bschaatsbergen
Copy link
Owner Author

What are your thoughts on this feature request @DanielRieske, @mmourick and @mvanholsteijn?

@bschaatsbergen bschaatsbergen added the waiting-response Maintainers are waiting on response from community or contributor. label Dec 11, 2023
@bschaatsbergen bschaatsbergen changed the title Add the ability to divide a CIDR range Add the ability to divide a CIDR range into smaller ranges Dec 11, 2023
@bschaatsbergen bschaatsbergen added help wanted Extra attention is needed and removed waiting-response Maintainers are waiting on response from community or contributor. under-consideration Indicates that the topic or suggestion is actively being reviewed and considered for implementation. labels Dec 23, 2023
@mmourick
Copy link
Collaborator

mmourick commented Jan 9, 2024

Sounds like a very nice feature to add to cidr. I'd also like to take a crack at implementing this.

@Phaze228
Copy link
Contributor

Created a PR for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new-feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants