Returns the IPv4 addresses associated with this NIC. If no IPv4
        addresses are used, then empty dictionary is returned.

def _get_ipv4_addrs(self):
        """
        Returns the IPv4 addresses associated with this NIC. If no IPv4
        addresses are used, then empty dictionary is returned.
        """
        addrs = self._get_addrs()
        ipv4addrs = addrs.get(netifaces.AF_INET)
        if not ipv4addrs:
            return {}
        return ipv4addrs[0]