Skip to content

Commit c5c3cee

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Introduce scope_types in multinic policy"
2 parents 50d577b + 9c129cc commit c5c3cee

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nova/policies/multinic.py

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

2424
multinic_policies = [
2525
policy.DocumentedRuleDefault(
26-
BASE_POLICY_NAME,
27-
base.RULE_ADMIN_OR_OWNER,
28-
"""Add or remove a fixed IP address from a server.
26+
name=BASE_POLICY_NAME,
27+
check_str=base.RULE_ADMIN_OR_OWNER,
28+
description="""Add or remove a fixed IP address from a server.
2929
3030
These APIs are proxy calls to the Network service. These are all
3131
deprecated.""",
32-
[
32+
operations=[
3333
{
3434
'method': 'POST',
3535
'path': '/servers/{server_id}/action (addFixedIp)'
@@ -38,7 +38,8 @@
3838
'method': 'POST',
3939
'path': '/servers/{server_id}/action (removeFixedIp)'
4040
}
41-
]),
41+
],
42+
scope_types=['system', 'project']),
4243
]
4344

4445

0 commit comments

Comments
 (0)