Add back the attach_external_network policy
The policy 'network:attach_external_network' was accidentally deleted. This patch adds it back. Change-Id: I7313ff3226fa55b0b3347d37b88d8e4c9a8a2e33 Closes-Bug: #1771883
This commit is contained in:
parent
910396e000
commit
cfe968cbb0
@ -17,6 +17,17 @@ from zun.common.policies import base
|
||||
NETWORK = 'network:%s'
|
||||
|
||||
rules = [
|
||||
policy.DocumentedRuleDefault(
|
||||
name=NETWORK % 'attach_external_network',
|
||||
check_str=base.ROLE_ADMIN,
|
||||
description='Attach an unshared external network to a container',
|
||||
operations=[
|
||||
{
|
||||
'path': '/v1/containers',
|
||||
'method': 'POST'
|
||||
}
|
||||
]
|
||||
),
|
||||
policy.DocumentedRuleDefault(
|
||||
name=NETWORK % 'create',
|
||||
check_str=base.ROLE_ADMIN,
|
||||
|
Loading…
Reference in New Issue
Block a user