(start,end)
| 91 | |
| 92 | |
| 93 | def parse_ip_range(start,end): |
| 94 | if '.' not in end: |
| 95 | end = start.rsplit('.',1)[0] + '.' + end |
| 96 | |
| 97 | start = ipaddress.ip_address(start) |
| 98 | end = ipaddress.ip_address(end) |
| 99 | ip_range = list(range(int(start),int(end)+1)) |
| 100 | ip_range = [str(ipaddress.ip_address(ip)) for ip in ip_range] |
| 101 | |
| 102 | return ip_range |
| 103 | |
| 104 | |
| 105 | def convert_ipv4_to_B(view): |