-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
support cidr #2252
Copy link
Copy link
Open
Labels
c: featureRequest for new featureRequest for new featurem: internetSomething is referring to the internet moduleSomething is referring to the internet modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature
Milestone
Description
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(...) and faker.internet.ipv6(...).
faker.internet.ipv4({ maskBit: 24 }) // 192.168.1.0/24
faker.internet.ipv4({ maskBit: { min: 8, max: 32 }}) // 10.0.0.0/10Alternative
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: featureRequest for new featureRequest for new featurem: internetSomething is referring to the internet moduleSomething is referring to the internet modulep: 1-normalNothing urgentNothing urgents: waiting for user interestWaiting for more users interested in this featureWaiting for more users interested in this feature