move get floating_ip_by_id to common functions