haypo/python-ipy — Issue #10: IPy.check_addr_prefixlen = False doesn't work
Author: sebastiendamaye
Created: 2012-02-28 17:34:01+00:00
State: open

Hi,

It seems that IPy.check_addr_prefixlen = False does not work properly.
>>> import IPy
>>> IPy.check_addr_prefixlen = False
>>> IPy.IP('80.14.164.132/255.255.255.0')
Traceback (most recent call last):
File "", line 1, in
File "IPy.py", line 248, in __init__
raise ValueError("%s has invalid prefix length (%s)" % (repr(self), self._prefixlen))
ValueError: IP('80.14.164.132/24') has invalid prefix length (24)
>>> IPy.__version__
'0.75'

From my understanding, IPy.check_addr_prefixlen = False should prevent the error message from appearing, right?
I'm running Ubuntu 11.10 with python2.7.2+