Skip to content

Commit 8c0d1ac

Browse files
committed
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
1 parent 4e67f4a commit 8c0d1ac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nova/policies/floating_ip_pools.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323

2424
floating_ip_pools_policies = [
2525
policy.DocumentedRuleDefault(
26-
BASE_POLICY_NAME,
27-
base.RULE_ADMIN_OR_OWNER,
28-
"List floating IP pools. This API is deprecated.",
29-
[
26+
name=BASE_POLICY_NAME,
27+
check_str=base.RULE_ADMIN_OR_OWNER,
28+
description="List floating IP pools. This API is deprecated.",
29+
operations=[
3030
{
3131
'method': 'GET',
3232
'path': '/os-floating-ip-pools'
3333
}
34-
]),
34+
],
35+
scope_types=['system', 'project']),
3536
]
3637

3738

0 commit comments

Comments
 (0)