A string representation of the interface with the network as a net mask.
>>> interface = IPv4Interface('192.0.2.5/24') >>> interface.with_netmask '192.0.2.5/255.255.255.0'
ipaddress/IPv4Interface.with_netmask
IPv4Interface.with_netmask