[netaddr>=1.0.0] Do not use netaddr.core.ZEROFILL flag with IPv6 addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Rodolfo Alonso |
Bug Description
In case of using this flag, that will raise the following exception:
>>> netaddr.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
self._value = module.
File "/usr/local/
addr = '.'.join(['%d' % int(i) for i in addr.split('.')])
File "/usr/local/
addr = '.'.join(['%d' % int(i) for i in addr.split('.')])
ValueError: invalid literal for int() with base 10: '200a::1'
Changed in neutron: | |
importance: | Undecided → Medium |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
Changed in neutron: | |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/c/openstack /neutron- lib/+/910331 /opendev. org/openstack/ neutron- lib/commit/ 3a9e39b9ef4d73c c60b534411bc525 5e7d280bef
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 3a9e39b9ef4d73c c60b534411bc525 5e7d280bef
Author: Rodolfo Alonso Hernandez <email address hidden>
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: I116ea2abbee13a 73302ebca9c6570 7f427a7d9d0
Closes-Bug: #2055173