summaryrefslogtreecommitdiff
path: root/nova/policies
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-08-07 19:30:54 +0000
committerGerrit Code Review <review@openstack.org>2020-08-07 19:30:55 +0000
commit35e10ad3b15fb63ec135450c070a6f51cadaae59 (patch)
tree4246f8bc4dc54f1c7306592154003ea5dc4a5a48 /nova/policies
parent092b7a00acc1c4bdc2a53b6734b7edab5a7e0278 (diff)
parent8c0d1acf6ea41adc3743a4e190eaf777188282c0 (diff)
downloadnova-35e10ad3b15fb63ec135450c070a6f51cadaae59.tar.gz
Merge "Introduce scope_types in FIP pools"
Diffstat (limited to 'nova/policies')
-rw-r--r--nova/policies/floating_ip_pools.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nova/policies/floating_ip_pools.py b/nova/policies/floating_ip_pools.py
index 1e5f1e8dd3..5e8d8e4f1d 100644
--- a/nova/policies/floating_ip_pools.py
+++ b/nova/policies/floating_ip_pools.py
@@ -23,15 +23,16 @@ BASE_POLICY_NAME = 'os_compute_api:os-floating-ip-pools'
floating_ip_pools_policies = [
policy.DocumentedRuleDefault(
- BASE_POLICY_NAME,
- base.RULE_ADMIN_OR_OWNER,
- "List floating IP pools. This API is deprecated.",
- [
+ name=BASE_POLICY_NAME,
+ check_str=base.RULE_ADMIN_OR_OWNER,
+ description="List floating IP pools. This API is deprecated.",
+ operations=[
{
'method': 'GET',
'path': '/os-floating-ip-pools'
}
- ]),
+ ],
+ scope_types=['system', 'project']),
]