Refer to the corresponding attribute documentation in IPv4Interface.
ipaddress/IPv6Interface.with_hostmask
IPv6Interface.with_hostmask