Merge "Fix resource type miss in vnfd scale template"
This commit is contained in:
commit
2c182a6ae9
@ -60,7 +60,7 @@ alarming monitoring and auto-scaling was also supported by Alarm monitor in Tack
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 120
|
||||
|
@ -38,7 +38,7 @@ topology_template:
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 120
|
||||
|
@ -55,7 +55,7 @@ topology_template:
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 120
|
||||
|
@ -48,7 +48,7 @@ ACTIVE_PENDING_STATUSES = (
|
||||
PENDING_UPDATE
|
||||
)
|
||||
|
||||
POLICY_SCALING = 'tosca.policy.tacker.Scaling'
|
||||
POLICY_SCALING = 'tosca.policies.tacker.Scaling'
|
||||
POLICY_SCALING_ACTIONS = (ACTION_SCALE_OUT,
|
||||
ACTION_SCALE_IN) = ('out', 'in')
|
||||
POLICY_ACTIONS = {POLICY_SCALING: POLICY_SCALING_ACTIONS}
|
||||
|
@ -40,7 +40,7 @@ topology_template:
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 60
|
||||
|
@ -38,7 +38,7 @@ topology_template:
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 120
|
||||
|
@ -34,7 +34,7 @@ topology_template:
|
||||
|
||||
policies:
|
||||
- SP1:
|
||||
type: tosca.policy.tacker.Scaling
|
||||
type: tosca.policies.tacker.Scaling
|
||||
properties:
|
||||
increment: 1
|
||||
cooldown: 60
|
||||
|
@ -374,11 +374,11 @@ class OpenStack(abstract_driver.DeviceAbstractDriver,
|
||||
|
||||
# policies:
|
||||
# - SP1:
|
||||
# type: tosca.policy.tacker.Scaling
|
||||
# type: tosca.policies.tacker.Scaling
|
||||
if 'policies' in vnfd_dict:
|
||||
for policy_dict in vnfd_dict['policies']:
|
||||
name, policy = list(policy_dict.items())[0]
|
||||
if policy['type'] == 'tosca.policy.tacker.Scaling':
|
||||
if policy['type'] == 'tosca.policies.tacker.Scaling':
|
||||
_convert_to_heat_scaling_policy(policy['properties'],
|
||||
name)
|
||||
# TODO(kanagaraj-manickam) only one policy is supported
|
||||
@ -429,7 +429,7 @@ class OpenStack(abstract_driver.DeviceAbstractDriver,
|
||||
for policies in topology_tpl_dict['policies']:
|
||||
policy_name, policy_dt = list(policies.items())[0]
|
||||
if policy_dt['type'] == \
|
||||
'tosca.policy.tacker.Scaling':
|
||||
'tosca.policies.tacker.Scaling':
|
||||
# Fixed metadata. it will be fixed
|
||||
# once targets are supported
|
||||
metadata_dict = dict()
|
||||
|
Loading…
Reference in New Issue
Block a user