iface.has_ip() - write check to catch if ip_addrs is not set. update tests.