neutron/etc
Salvatore Orlando 9a6d81140d Perform policy checks only once on list responses
The policy engine is currently being called for every attribute
of every resource to be returned by a list response. This is
harming the API performance; moreover such a high number of checks
is also unnecessary.

This patch therefore slightly changes the API logic so that list
response first determine the list of attributes which should be
returned querying the policy engine and then use this list for
all resource items to be returned.

To this aim a few methods in base.py needed to be refactored.
This patch also removes the routine check_if_exists from policy.py
and the related PolicyNotFound exception.

Finally, this patch also removes unnecessary admin_or_owner rules
when applied to attributes. This kind of rule indeed has no effect
anyway because of Neutron's ownership checks. The rules were removed
because this change won't allow anymore for having attribute-level
policies whose evaluation result depends on the resource value.

Implements blueprint faster-list-responses

Change-Id: I21b8273add5d5984f512ad94af5a99cf0b0a5d93
(cherry picked from commit 9b2b5e1482)
2014-09-02 21:40:05 +02:00
..
init.d Rename to Neutron in sample init.d script 2013-07-13 16:55:55 -04:00
neutron Add configurable http_timeout parameter for Cisco N1K 2014-07-27 11:21:32 -07:00
api-paste.ini Return request-id in API response 2014-02-10 04:58:38 +09:00
dhcp_agent.ini Update help message of flag 'enable_isolated_metadata' 2014-02-18 14:42:21 +01:00
fwaas_driver.ini Firewall as a Service (FWaaS) Agent 2013-08-11 10:56:37 -07:00
l3_agent.ini Merge "L3 Agent can handle many external networks" 2014-01-13 16:34:56 +00:00
lbaas_agent.ini LBaaS: unify haproxy-on-host plugin driver and agent 2013-12-10 12:08:03 +04:00
metadata_agent.ini Metadata agent caches networks for routers 2014-06-10 17:50:58 +02:00
metering_agent.ini Iptables metering driver 2013-09-02 12:39:27 +02:00
neutron.conf Make default nova_url use a version 2014-05-06 15:09:08 +00:00
policy.json Perform policy checks only once on list responses 2014-09-02 21:40:05 +02:00
quantum Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
rootwrap.conf Fix invalid facilities documented in rootwrap.conf 2014-02-18 09:50:57 +08:00
services.conf Embrane LBaaS Driver 2014-03-12 16:02:11 -07:00
vpn_agent.ini VPNaaS Service Driver for Cisco CSR 2014-03-05 15:08:39 -05:00