yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35798
[Bug 1478181] Re: there is something wrong in the note below function _validate_ip_address
The reason that note is there and the reason that function is written
that way is because those types of address inputs only work on some
systems. We want neutron input to be consistent on all systems.
** Changed in: neutron
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1478181
Title:
there is something wrong in the note below function
_validate_ip_address
Status in neutron:
Invalid
Bug description:
https://github.com/openstack/neutron/blob/master/neutron/api/v2/attributes.py
the note that below function _validate_ip_address
on line199 :
# >>> netaddr.IPAddress('1' * 59)
will not get right result
# IPAddress('199.28.113.199')
but raise error result like this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 306, in __init__
'address from %r' % addr)
netaddr.core.AddrFormatError: failed to detect a valid IP address from '11111111111111111111111111111111111111111111111111111111111'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1478181/+subscriptions