Bug 690625

Summary: IP("::/0") gives a netmask of 0.0.0.0 rather then 0:0:0:0:0:0:0:0
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: python-IPyAssignee: Matt Domsch <matt_domsch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: matt_domsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-IPy-0.75-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-04 18:52:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
0001-Issue-4-IP-0-.netmask-gives-IP-instead-of-IP-0.0.0.0.patch none

Description Daniel Walsh 2011-03-24 20:23:48 UTC
# python
Python 2.7.1 (r271:86832, Feb  9 2011, 17:56:14) 
[GCC 4.6.0 20110205 (Red Hat 4.6.0-0.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from IPy import IP
>>> x=IP("::/0")
>>> print x.netmask()
0.0.0.0
>>> 


rpm -q python-IPy
python-IPy-0.70-3.fc15.noarch

Comment 1 Matt Domsch 2011-03-24 20:30:38 UTC
Dan, any chance 0.73 fixes it for you?

http://pypi.python.org/pypi/IPy/

Comment 2 Matt Domsch 2011-03-24 20:32:41 UTC
Nope, 0.74 doesn't.  I'll report upstream.

Thanks,
Matt

Comment 3 Matt Domsch 2011-03-24 20:36:55 UTC
https://github.com/haypo/python-ipy/issues/4

Comment 4 Daniel Walsh 2011-03-24 20:51:41 UTC
I added this hack to my program

		       if newmask == "0.0.0.0" and i.version() == 6:
			       newmask = "::"

Comment 5 Matt Domsch 2011-03-24 22:43:49 UTC
Created attachment 487432 [details]
0001-Issue-4-IP-0-.netmask-gives-IP-instead-of-IP-0.0.0.0.patch

Upstream patch to address bug.  Upstream has offered to release a new version to address this.

Comment 6 Daniel Walsh 2011-03-25 11:55:18 UTC
Great.  I will remove my hack when it gets into F15.

Comment 7 Matt Domsch 2011-06-21 15:10:49 UTC
Koji build of 0.75 includes this fix.  This is built for rawhide now.  I can backport to F15 if necessary.


Created task: 3150183
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3150183

Comment 8 Fedora Update System 2011-06-21 15:23:05 UTC
python-IPy-0.75-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc15

Comment 9 Fedora Update System 2011-06-21 17:40:37 UTC
python-IPy-0.75-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-IPy-0.75-1.el6

Comment 10 Fedora Update System 2011-06-21 23:53:07 UTC
Package python-IPy-0.75-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-IPy-0.75-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc15
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2011-07-04 17:01:32 UTC
python-IPy-0.75-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc14

Comment 12 Fedora Update System 2011-07-04 18:52:00 UTC
python-IPy-0.75-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2011-07-12 14:59:23 UTC
python-IPy-0.75-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2011-07-31 03:44:18 UTC
python-IPy-0.75-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.