def get_mac_address_range(context, id, fields=None):
LOG.info("<STR_LIT>" %<EOL>(id, context.tenant_id, fields))<EOL>if not context.is_admin:<EOL><INDENT>raise n_exc.NotAuthorized()<EOL><DEDENT>mac_address_range = db_api.mac_address_range_find(<EOL>context, id=id, scope=db_api.ONE)<EOL>if not mac_address_range:<EOL><INDENT>raise q_exc.MacAddressRangeNotFound(<EOL>mac_address_range_id=id)<EOL><DEDENT>return v._make_mac_range_dict(mac_address_range)<EOL>
Retrieve a mac_address_range.

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