neutron/neutron/extensions
panxia6679sina.com 17b8d9e209 Check target_tenant when create rbac policy
Currently the default value of target_tenant in rbac_policies resource
is None, if a user creates rbac policy without a target_tenant,
neutron-server raises an internal error.
This patch adds a check for target_tenant, it must be a string which
length is TENANT_ID_MAX_LEN.
This patch also does a change for policy engine which now allows
enforce_policy to work on attrs without default.

cherry picked from commit I757b4b56a8cb1a8060cee3103ee2aead9be574de

Change-Id: I757b4b56a8cb1a8060cee3103ee2aead9be574de
Closes-bug: #1517331
2016-09-05 13:27:05 +00:00
..
__init__.py Removing vim header lines 2014-04-01 10:38:31 -04:00
address_scope.py Correlate address scope with network 2016-02-22 22:46:18 -05:00
agent.py Wrong usage of "a" 2015-12-30 01:15:16 +08:00
allowedaddresspairs.py Merge "Allow address pairs to be cleared with None" 2016-02-26 21:33:23 +00:00
auto_allocated_topology.py Implement 'get-me-a-network' API building block 2016-02-08 18:06:35 -08:00
availability_zone.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
bgp.py Add Queries For BGP Route Lookups 2016-03-02 11:03:02 -08:00
bgp_dragentscheduler.py BGP Dynamic Routing: introduce BgpDrAgent 2016-02-18 10:46:55 -08:00
default_subnetpools.py Add use_default_subnetpool to subnet create requests 2016-02-23 20:53:43 -07:00
dhcpagentscheduler.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
dns.py Fix required extensions mix-up 2016-01-28 15:42:58 -08:00
dvr.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
external_net.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
extra_dhcp_opt.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
extraroute.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
flavors.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
l3.py Pecan: get rid of member action hook 2016-02-19 04:30:08 -08:00
l3_ext_gw_mode.py Remove 'validate' key in 'type:dict_or_nodata' type 2016-01-14 00:07:19 -05:00
l3_ext_ha_mode.py Allow min_l3_agents_per_router to equal one 2016-07-06 06:25:13 +02:00
l3agentscheduler.py Fix remove_router_from_l3_agent for 'dvr' mode agent 2016-02-02 19:04:13 +08:00
metering.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
multiprovidernet.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
netmtu.py Fixes typos Openstack -> OpenStack 2016-01-18 16:04:56 +00:00
network_availability_zone.py Use a joined relationship for AZ info on networks 2015-12-14 14:45:30 -08:00
network_ip_availability.py IP Availability: remove unused imports 2016-03-01 07:06:10 -08:00
portbindings.py macvtap: ML2 mech driver for macvtap network attachments 2016-02-17 15:57:37 +01:00
portsecurity.py port security: gracefully handle resources with no bindings 2016-03-30 17:15:56 +00:00
providernet.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00
qos.py Give the qos extension a friendly name. 2016-02-13 12:11:37 +00:00
quotasv2.py Pecan: fix quota management 2016-01-13 09:10:25 -08:00
rbac.py Check target_tenant when create rbac policy 2016-09-05 13:27:05 +00:00
router_availability_zone.py Use a joined relationship for AZ info on routers 2015-12-15 23:29:47 -08:00
routerservicetype.py Merge "Remove get_namespace from API extensions" 2015-06-24 14:54:12 +00:00
securitygroup.py Accept icmpv6 as protocol of SG rule for backward compatibility 2016-03-16 13:32:42 -07:00
servicetype.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
standardattrdescription.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
subnetallocation.py Fix required extensions mix-up 2016-01-28 15:42:58 -08:00
tag.py Add tag mechanism for network resources 2016-03-02 05:43:14 +09:00
timestamp_core.py Add timestamp for neutron core resources 2016-03-05 02:17:35 +00:00
vlantransparent.py Use _ from neutron._i18n 2015-12-06 19:39:04 +09:00