def get_floatingip(context, id, fields=None):
LOG.info('<STR_LIT>' % (id, context.tenant_id))<EOL>filters = {'<STR_LIT>': ip_types.FLOATING, '<STR_LIT>': False}<EOL>floating_ip = db_api.floating_ip_find(context, id=id, scope=db_api.ONE,<EOL>**filters)<EOL>if not floating_ip:<EOL><INDENT>raise q_exc.FloatingIpNotFound(id=id)<EOL><DEDENT>return v._make_floating_ip_dict(floating_ip)<EOL>
Retrieve a floating IP.

    :param context: neutron api request context.
    :param id: The UUID of the floating IP.
    :param fields: a list of strings that are valid keys in a
        floating IP dictionary as listed in the RESOURCE_ATTRIBUTE_MAP
        object in neutron/api/v2/attributes.py. Only these fields
        will be returned.

    :returns: Dictionary containing details for the floating IP.  If values
        are declared in the fields parameter, then only those keys will be
        present.