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

Provide a faker for ipv4 cidr ranges #325

Closed
steakunderscore opened this issue Mar 2, 2015 · 3 comments
Closed

Provide a faker for ipv4 cidr ranges #325

steakunderscore opened this issue Mar 2, 2015 · 3 comments

Comments

@steakunderscore
Copy link
Contributor

It would be cool if we could generate faker data for cidr ranges. I'll implement a version just making use of Faker::Internet.ip_v4_address method, adding a cidr range.

@steakunderscore
Copy link
Contributor Author

Made a pull request #326. It's not the best of solutions because it doesn't set the network address or check. But let me know what you think.

@kkirsche
Copy link
Contributor

Not sure I understand this. Are you looking to generate the entire IPv4 address in CIDR notation with the mask or just the mask? I can easily put this together but I will probably build it so that it can generate IPv4 in CIDR, dot notation, long format, hex format, etc. as IP's can be represented in many ways. Thoughts?

@steakunderscore
Copy link
Contributor Author

This is now implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants