Reviewed: https://review.opendev.org/c/openstack/neutron-lib/+/910331 Committed: https://opendev.org/openstack/neutron-lib/commit/3a9e39b9ef4d73cc60b534411bc5255e7d280bef Submitter: "Zuul (22348)" Branch: master
commit 3a9e39b9ef4d73cc60b534411bc5255e7d280bef Author: Rodolfo Alonso Hernandez <[email protected]> Date: Fri Feb 23 14:23:58 2024 +0000 [netaddr>=1.0.0] Do not use netaddr.core.ZEROFILL flag with IPv6 The flag "netaddr.core.ZEROFILL" cannot be used with IPv6 addresses with netaddr>=1.0.0 Change-Id: I116ea2abbee13a73302ebca9c65707f427a7d9d0 Closes-Bug: #2055173 ** Changed in: neutron Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/2055173 Title: [netaddr>=1.0.0] Do not use netaddr.core.ZEROFILL flag with IPv6 addresses Status in neutron: Fix Released Bug description: In case of using this flag, that will raise the following exception: >>> netaddr.IPAddress("200a::1", flags=netaddr.core.ZEROFILL) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/dist-packages/netaddr/ip/__init__.py", line 333, in __init__ self._value = module.str_to_int(addr, flags) File "/usr/local/lib/python3.10/dist-packages/netaddr/strategy/ipv4.py", line 120, in str_to_int addr = '.'.join(['%d' % int(i) for i in addr.split('.')]) File "/usr/local/lib/python3.10/dist-packages/netaddr/strategy/ipv4.py", line 120, in <listcomp> addr = '.'.join(['%d' % int(i) for i in addr.split('.')]) ValueError: invalid literal for int() with base 10: '200a::1' To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/2055173/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

