summaryrefslogtreecommitdiff
path: root/nova/policies
diff options
context:
space:
mode:
authorGhanshyam Mann <gmann@ghanshyammann.com>2020-07-17 21:54:23 -0500
committerGhanshyam Mann <gmann@ghanshyammann.com>2020-07-18 18:48:42 +0000
commit8c0d1acf6ea41adc3743a4e190eaf777188282c0 (patch)
tree09ea81d0d9282bbd90d1875d0163257ff6b8e432 /nova/policies
parent4e67f4aa27f4d7a220b18de6c5511c7c99283bfe (diff)
downloadnova-8c0d1acf6ea41adc3743a4e190eaf777188282c0.tar.gz
Introduce scope_types in FIP pools
Appropriate scope_type for nova case: - https://specs.openstack.org/openstack/nova-specs/specs/ussuri/approved/policy-defaults-refresh.html#scope This commit introduce scope_type for FIP pools policies as 'system' and 'project' Partial implement blueprint policy-defaults-refresh-deprecated-apis Change-Id: Ica29330ac8c22a40bbf5e88ef554bbc44e1ac293
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']),
]