[policy in code] Add support for replicas, networks and security services [7/10]

This patch adds policy in code support for replica, network
and security service resources.

Change-Id: I9a79b5ececc583e85149cc920950e462e805b245
Partial-Implements: blueprint policy-in-code
This commit is contained in:
zhongjun
2017-11-29 11:40:55 +08:00
committed by zhongjun
parent 4f959eeaf7
commit a23d09eb01
6 changed files with 366 additions and 29 deletions

View File

@@ -215,7 +215,8 @@ def check_policy(context, resource, action, target_obj=None):
'share_snapshot_instance_export_location',
'quota_set', 'quota_class_set', 'service',
'share_server', 'share_group', 'share_group_snapshot',
'share_group_type', 'share_group_types_spec', ):
'share_group_type', 'share_group_types_spec',
'share_replica', 'share_network', 'security_service', ):
authorize(context, _action, target)
else:
enforce(context, _action, target)