The python the Class IPv4Interface on the ipaddress module when I try to use the .prefixlen attribute it says that do not exist but is i have access by using ._prefixlen
if i have on the IPv4Interface class the .netmask attribute and the .nethost attribute Why not the .prefixlen attribute?,
I reported like a bug as i think that attribute should appear on the IPv4Interface Class
Below test I did
>>> import ipaddress as ip
>>> addr = ip.ip_interface('192.168.1.1/24')
>>> addr.prefixlen
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'IPv4Interface' object has no attribute 'prefixlen'
>>> addr.netmask
IPv4Address('255.255.255.0')
>>> addr._prefixlen
24 |