'Function to check if floatingip host match for the given agent.
Check if the given floatingip host matches with the requesting
host when floatingip dest_host is None.
If floatingip dest_host is not None it means that the floatingip
is migrating to a new compute host and the original host will not
match.'

def _check_floating_ip_not_valid_for_given_host(self, fip_host, fip_dest_host, host):

    host_mismatch = ((fip_host != host) and (fip_dest_host is None))
    return ((fip_host is not None) and host_mismatch)
