openwisp / openwisp-ipam

IP address space administration module of OpenWISP
https://openwisp.io/docs/dev/ipam/
BSD 3-Clause "New" or "Revised" License
104 stars 51 forks source link

[bug] Get next available IP doesn't work well with /32 on IPv4 #102

Closed nemesifier closed 2 years ago

nemesifier commented 3 years ago

Try creating a /32 subnet on ipv4, then try creating an address, select the newly create subnet and you'll see an alert saying "No IP address available", but this alert is wrong, because saving the address for the /32 works.

pandafy commented 2 years ago

This bug was due to implementation in ipaddress library and has been fixed in Python 3.8 or higher. Please check https://bugs.python.org/issue28577