'Configures floating IPs owned by host.'

def init_host_floating_ips(self):

    admin_context = context.get_admin_context()
    try:
        floating_ips = objects.FloatingIPList.get_by_host(admin_context, self.host)
    except exception.NotFound:
        return
    for floating_ip in floating_ips:
        if floating_ip.fixed_ip_id:
            try:
                fixed_ip = floating_ip.fixed_ip
            except exception.FixedIpNotFound:
                LOG.debug('Fixed    IP    %s    not    found', floating_ip.fixed_ip_id)
                continue
            interface = (CONF.public_interface or floating_ip.interface)
            try:
                self.l3driver.add_floating_ip(floating_ip.address, fixed_ip.address, interface, fixed_ip.network)
            except processutils.ProcessExecutionError:
                LOG.debug('Interface    %s    not    found', interface)
                raise exception.NoFloatingIpInterface(interface=interface)
