Add ability to validate if a CIDR notation represents a valid range
dadepo opened this issue · 2 comments
dadepo commented
The IP number portion of a cidr notation should signify the start of the range (or the network identifier)
Add a validation method that returns true or false depending on if the given ip number represents the start of the range.
validate 10.0.0.0/8 -> should return true, since 10.0.0.0 is the start of the range depicted
validate 10.0.4.23/8 -> should return false, since 10.0.4.23/8 is not the start of the range.
dadepo commented
Prep-ing for v1.2.0 release