@Sridhar: thanks for looking at it and update, I really appreciate it.
AS Bharath commented above, there seems no problem in resolving custom types. The implicit references you mentioned are working fine. About the second issue of translated template not providing expected result is due to the fact that the Tacker template (https://github.com/openstack/tacker/blob/master/samples/tosca-templates/vnfd/tosca-vnfd-scale.yaml) is not correct in providing 'targets' field syntax as expected by TOSCA specification. The 'targets' key name seats at the same level as 'properties' (i.e. it is one of the main sections of policies) but the template has provided it as property so the parser treats it as property and the translation can't make use of it. If you correct template as Bharath mentioned above and as given below snippet, it seems working fine. Bharath has tested it with Tacker.
@Sridhar: thanks for looking at it and update, I really appreciate it.
AS Bharath commented above, there seems no problem in resolving custom types. The implicit references you mentioned are working fine. About the second issue of translated template not providing expected result is due to the fact that the Tacker template (https:/ /github. com/openstack/ tacker/ blob/master/ samples/ tosca-templates /vnfd/tosca- vnfd-scale. yaml) is not correct in providing 'targets' field syntax as expected by TOSCA specification. The 'targets' key name seats at the same level as 'properties' (i.e. it is one of the main sections of policies) but the template has provided it as property so the parser treats it as property and the translation can't make use of it. If you correct template as Bharath mentioned above and as given below snippet, it seems working fine. Bharath has tested it with Tacker.
Correct syntax: tacker. Scaling
increment: 1
min_ instances: 1
max_ instances: 3
default_ instances: 2 /github. com/openstack/ tacker/ blob/master/ samples/ tosca-templates /vnfd/tosca- vnfd-scale. yaml tacker. Scaling
increment: 1
min_ instances: 1
max_ instances: 3
default_ instances: 2
policies:
- SP1:
type: tosca.policies.
targets: [VDU1, VDU2]
properties:
cooldown: 120
Incorrect syntax as provided in the https:/
policies:
- SP1:
type: tosca.policies.
properties:
cooldown: 120
targets: [VDU1, VDU2]