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 cidr manipulation functions to net module #1779

Open
Chewie opened this issue Dec 10, 2024 · 0 comments
Open

Add cidr manipulation functions to net module #1779

Chewie opened this issue Dec 10, 2024 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed stdlib Issues or PRs related to kcl standard libraries

Comments

@Chewie
Copy link

Chewie commented Dec 10, 2024

Feature Request

Is your feature request related to a problem? Please describe:

I need to generate yaml for a network resource that takes a "minHost" (e.g. 10.0.0.2) and a "maxHost" (e.g. 10.0.0.254), but my input data is a CIDR block (e.g. 10.0.0.0/24)

Describe the feature you'd like:

I'd like to have functions in the net module to manipulate cidr blocks. Something similar to python's ipaddress module, where I can iterate and index hosts in that block.

Maybe having an ipnetwork object/schema with member functions?

Cheers!

@He1pa He1pa added good first issue Good for newcomers stdlib Issues or PRs related to kcl standard libraries help wanted Extra attention is needed labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed stdlib Issues or PRs related to kcl standard libraries
Projects
None yet
Development

No branches or pull requests

2 participants