Open unional opened 1 year ago
Thank you for your feature proposal.
We marked it as "waiting for user interest" for now to gather some feedback from our community:
If you would like to see this feature be implemented, please react to the description with an up-vote (:+1:).
If you have a suggestion or want to point out some special cases that need to be considered, please leave a comment, so we are aware about them.
We would also like to hear about other community members' use cases for the feature to give us a better understanding of their potential implicit or explicit requirements.
We will start the implementation based on:
the number of votes (:+1:) and comments
the relevance for the ecosystem
availability of alternatives and workarounds
and the complexity of the requested feature
We do this because:
There are plenty of languages/countries out there and we would like to ensure that every method can cover all or almost all of them.
Every feature we add to faker has "costs" associated to it:
Thank you for your suggestion @unional.
To better weigh the importance of your feature, it would help if you could provide the information on whether this is a "nice to have" feature request or if you have an actual use case. If you have an actual use case, it would help if you could provide it as well.
Hi,
Yes. It is an actual use case.
You can kind of mimic this by string concatenation, except that the subnet mask must be 0 to the number of bits in IPv4 or IPv6.
That's why it is better to provided by faker instead.
Clear and concise description of the problem
Add support to generate IP CIDR:
https://aws.amazon.com/what-is/cidr/#:~:text=CIDR%20notation%20represents%20an%20IP,1.0%2F22. https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
Suggested solution
Add as an option to
faker.internet.ipv4(...)
andfaker.internet.ipv6(...)
.Alternative
No response
Additional context
No response