add iface.has_ip()
write tests for iface.has_ip()