'Removes a fixed IP from an instance from specified network.'

def remove_fixed_ip_from_instance(self, context, instance_id, host, address, rxtx_factor=None):

    LOG.debug('Remove    fixed    IP    %s', address, instance_uuid=instance_id)
    fixed_ips = objects.FixedIPList.get_by_instance_uuid(context, instance_id)
    for fixed_ip in fixed_ips:
        if (str(fixed_ip.address) == address):
            self.deallocate_fixed_ip(context, address, host)
            if (not fixed_ip.leased):
                fixed_ip.disassociate()
            return self.get_instance_nw_info(context, instance_id, rxtx_factor, host)
    raise exception.FixedIpNotFoundForSpecificInstance(instance_uuid=instance_id, ip=address)
