Merge "Fix new Network API policy rules" into stable/wallaby

This commit is contained in:
Zuul 2021-04-03 03:43:01 +00:00 committed by Gerrit Code Review
commit 4c5567cb35
1 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ rules = [
policy.DocumentedRuleDefault(
name='create_network',
check_str=base.PROJECT_MEMBER,
check_str=base.SYSTEM_ADMIN_OR_PROJECT_MEMBER,
scope_types=['project'],
description='Create a network',
operations=ACTION_POST,
@ -93,7 +93,7 @@ rules = [
),
policy.DocumentedRuleDefault(
name='create_network:port_security_enabled',
check_str=base.PROJECT_MEMBER,
check_str=base.SYSTEM_ADMIN_OR_PROJECT_MEMBER,
scope_types=['project'],
description=(
'Specify ``port_security_enabled`` '
@ -186,7 +186,7 @@ rules = [
),
policy.DocumentedRuleDefault(
name='get_network:router:external',
check_str=base.PROJECT_READER,
check_str=base.SYSTEM_OR_PROJECT_READER,
scope_types=['project'],
description='Get ``router:external`` attribute of a network',
operations=ACTION_GET,