def delete_mac_address_range(context, id):
LOG.info("<STR_LIT>" %<EOL>(id, context.tenant_id))<EOL>if not context.is_admin:<EOL><INDENT>raise n_exc.NotAuthorized()<EOL><DEDENT>with context.session.begin():<EOL><INDENT>mar = db_api.mac_address_range_find(context, id=id, scope=db_api.ONE)<EOL>if not mar:<EOL><INDENT>raise q_exc.MacAddressRangeNotFound(<EOL>mac_address_range_id=id)<EOL><DEDENT>_delete_mac_address_range(context, mar)<EOL><DEDENT>
Delete a mac_address_range.

    : param context: neutron api request context
    : param id: UUID representing the mac_address_range to delete.