Merge "Fix create_port new API policy roles"

This commit is contained in:
Zuul 2021-04-01 20:32:36 +00:00 committed by Gerrit Code Review
commit b33539ee26
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ rules = [
policy.DocumentedRuleDefault( policy.DocumentedRuleDefault(
name='create_port', name='create_port',
check_str=base.PROJECT_MEMBER, check_str=base.SYSTEM_ADMIN_OR_PROJECT_MEMBER,
scope_types=['system', 'project'], scope_types=['system', 'project'],
description='Create a port', description='Create a port',
operations=ACTION_POST, operations=ACTION_POST,
@ -211,7 +211,7 @@ rules = [
), ),
policy.DocumentedRuleDefault( policy.DocumentedRuleDefault(
name='create_port:binding:vnic_type', name='create_port:binding:vnic_type',
check_str=base.PROJECT_MEMBER, check_str=base.SYSTEM_ADMIN_OR_PROJECT_MEMBER,
scope_types=['project'], scope_types=['project'],
description=( description=(
'Specify ``binding:vnic_type`` ' 'Specify ``binding:vnic_type`` '