Merge "Rename policy auth for V3 os-fixed-ips"
This commit is contained in:
commit
2ca8bd8b35
@ -50,6 +50,7 @@
|
||||
"compute_extension:extended_ips_mac": "",
|
||||
"compute_extension:extended_vif_net": "",
|
||||
"compute_extension:fixed_ips": "rule:admin_api",
|
||||
"compute_extension:v3:os-fixed-ips": "rule:admin_api",
|
||||
"compute_extension:flavor_access": "",
|
||||
"compute_extension:flavor_disabled": "",
|
||||
"compute_extension:flavor_rxtx": "",
|
||||
|
@ -22,7 +22,9 @@ from nova import exception
|
||||
from nova.openstack.common import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
authorize = extensions.extension_authorizer('compute', 'fixed_ips')
|
||||
|
||||
ALIAS = "os-fixed-ips"
|
||||
authorize = extensions.extension_authorizer('compute', 'v3:' + ALIAS)
|
||||
|
||||
|
||||
class FixedIPController(object):
|
||||
@ -82,7 +84,7 @@ class FixedIPs(extensions.V3APIExtensionBase):
|
||||
"""Fixed IPs support."""
|
||||
|
||||
name = "FixedIPs"
|
||||
alias = "os-fixed-ips"
|
||||
alias = ALIAS
|
||||
namespace = "http://docs.openstack.org/compute/ext/fixed_ips/api/v3"
|
||||
version = 1
|
||||
|
||||
|
@ -129,6 +129,7 @@ policy_data = """
|
||||
"compute_extension:extended_ips_mac": "",
|
||||
"compute_extension:extended_vif_net": "",
|
||||
"compute_extension:fixed_ips": "",
|
||||
"compute_extension:v3:os-fixed-ips": "",
|
||||
"compute_extension:flavor_access": "",
|
||||
"compute_extension:flavor_disabled": "",
|
||||
"compute_extension:flavor_rxtx": "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user