On 20 huhti, 18:30, [EMAIL PROTECTED] (Eddie Corns) wrote:
> =?iso-8859-1?q?Pekka_J=E4rvinen?= <[EMAIL PROTECTED]> writes:
> >On 20 huhti, 14:34, [EMAIL PROTECTED] (Eddie Corns) wrote:
> >> Look at:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466298
> >> it handles most of the logic of c
On 20 huhti, 14:34, [EMAIL PROTECTED] (Eddie Corns) wrote:
> Look at:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466298
> it handles most of the logic of combining IP ranges.
>
> Eddie
I'm getting error:
Traceback (most recent call last):
File "ipr.py", line 5, in
x = ipv4.IP4Ra
On 20 huhti, 04:32, Pekka Järvinen <[EMAIL PROTECTED]> wrote:
> # I have list of free IP addresses. One IP per line. Now I'm trying to
> # share them to CIDR blocks /24 - /32. For example: if 1.1.1.0 -
> 1.1.1.255
> # is free, it returns list['1.1.1.0/24'] but l
# I have list of free IP addresses. One IP per line. Now I'm trying to
# share them to CIDR blocks /24 - /32. For example: if 1.1.1.0 -
1.1.1.255
# is free, it returns list['1.1.1.0/24'] but let's say that 1.1.1.1 is
# used, then function should return list['1.1.1.128/25',
# '1.1.1.127/26', '1.1.1.