Add cidr manipulation functions to net module #1779
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
stdlib
Issues or PRs related to kcl standard libraries
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!
The text was updated successfully, but these errors were encountered: