We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This results in not being able to use the glob methods with accurate results.
>>> a = iprange_to_globs('10.0.0.255', '10.0.255.255') >>> a ['10.0.*.255'] >>> valid_glob(a[0]) False
The value for a should be ['10.0.0.255', '10.0.1-255.*'].
a
['10.0.0.255', '10.0.1-255.*']
>>> b = iprange_to_globs('10.0.0.254', '10.0.255.255') >>> b[0] '10.0.0.254-255' >>> valid_glob(b[0]) True
The value for b should be ['10.0.0.254-255', '10.0.1-255.*'].
b
['10.0.0.254-255', '10.0.1-255.*']
>>> c = iprange_to_globs('10.0.0.255', '10.0.255.254') >>> c[0] '10.0.0.255' >>> valid_glob(c[0]) True
The value for c should be ['10.0.0.255', '10.0.1-254.*', '10.0.255.0-254'].
c
['10.0.0.255', '10.0.1-254.*', '10.0.255.0-254']
This is not the case when the last octet of the start range is 0 and the last octet of the end range is 255.
0
255
>>> z = iprange_to_globs('10.0.0.0', '10.0.255.255') >>> z ['10.0.*.*'] >>> valid_glob(z[0]) True
The text was updated successfully, but these errors were encountered:
fixed in latest checkin
Sorry, something went wrong.
No branches or pull requests
This results in not being able to use the glob methods with accurate results.
Examples of incorrect results
Last octet of start range is equal to last octet of end range
The value for
a
should be['10.0.0.255', '10.0.1-255.*']
.Last octet of start range is less than last octet of end range
The value for
b
should be['10.0.0.254-255', '10.0.1-255.*']
.Last octet of start range is greater than last octet of end range:
The value for
c
should be['10.0.0.255', '10.0.1-254.*', '10.0.255.0-254']
.Example of correct result
This is not the case when the last octet of the start range is
0
and the last octet of the end range is255
.The text was updated successfully, but these errors were encountered: