Merge "Rename policy auth for V3 os-fixed-ips"

This commit is contained in:
Jenkins 2013-05-29 16:15:08 +00:00 committed by Gerrit Code Review
commit 2ca8bd8b35
3 changed files with 6 additions and 2 deletions

View File

@ -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": "",

View File

@ -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

View File

@ -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": "",