Rename get_hostip to get_floating_ip and do simpler pattern match