ce8bde09d34263ad5812cb42ac7631551888a7b5
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updGroupsConnectivity / noConsolidation / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.smp:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     image_smp_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: SCP SMP image
19       default: asc_base_image_smp
20     lab_name:
21       hidden: false
22       immutable: false
23       type: string
24       description: Lab name
25     vnf_name:
26       hidden: false
27       immutable: false
28       type: string
29       description: Unique name for this VNF instance
30       default: This_is_the_SCP_name
31     vnf_id:
32       hidden: false
33       immutable: false
34       type: string
35       description: Unique ID for this VNF instance
36       default: This_is_ths_SCP_id
37     flavor_smp_name:
38       hidden: false
39       immutable: false
40       type: string
41       description: SCP SMP Flavor
42       default: a1.Small
43     availability_zone_0:
44       hidden: false
45       immutable: false
46       type: string
47     port_name:
48       hidden: false
49       immutable: false
50       type: string
51       description: port name
52       default: port_name
53   node_templates:
54     port1:
55       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
56       properties:
57         replacement_policy: AUTO
58         network:
59           get_input: port_name
60       requirements:
61       - binding:
62           capability: tosca.capabilities.network.Bindable
63           node: server_smp1
64           relationship: tosca.relationships.network.BindsTo
65     server_smp1:
66       type: org.openecomp.resource.vfc.nodes.heat.smp
67       properties:
68         flavor:
69           get_input: flavor_smp_name
70         availability_zone:
71           get_input: availability_zone_0
72         image:
73           get_input: image_smp_name
74         metadata:
75           jx_vm_role: smp2
76           vnf_id:
77             get_input: vnf_id
78           jx_lab_name:
79             get_input: lab_name
80         user_data_format: RAW
81         name:
82           get_input: smp_name_1
83         scheduler_hints:
84           group: BE_Affinity_group
85     port2:
86       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
87       properties:
88         replacement_policy: AUTO
89         network:
90           get_input: port_name
91       requirements:
92       - binding:
93           capability: tosca.capabilities.network.Bindable
94           node: server_smp1
95           relationship: tosca.relationships.network.BindsTo
96     abstract_smp:
97       type: org.openecomp.resource.abstract.nodes.smp
98       directives:
99       - substitutable
100       properties:
101         compute_smp_availability_zone:
102         - get_input: availability_zone_0
103         vm_flavor_name:
104           get_input: flavor_smp_name
105         compute_smp_user_data_format:
106         - RAW
107         vm_image_name:
108           get_input: image_smp_name
109         port_port2_replacement_policy:
110         - AUTO
111         compute_smp_name:
112         - get_input: smp_name_1
113         port_port1_replacement_policy:
114         - AUTO
115         port_port1_network:
116         - get_input: port_name
117         port_port2_network:
118         - get_input: port_name
119         compute_smp_metadata:
120         - jx_vm_role: smp2
121           vnf_id:
122             get_input: vnf_id
123           jx_lab_name:
124             get_input: lab_name
125         compute_smp_scheduler_hints:
126         - group: BE_Affinity_group
127         service_template_filter:
128           substitute_service_template: Nested_smpServiceTemplate.yaml
129           count: 1
130         index_value:
131           get_property:
132           - SELF
133           - service_template_filter
134           - index_value
135   groups:
136     FE_SMP_Affinity_group:
137       type: tosca.groups.Root
138       members:
139       - abstract_smp
140     hot_template_group:
141       type: org.openecomp.groups.heat.HeatStack
142       properties:
143         heat_file: ../Artifacts/hot_template.yml
144         description: ASC Template
145       members:
146       - port1
147       - server_smp1
148       - port2
149     BE_Affinity_group:
150       type: tosca.groups.Root
151       members:
152       - abstract_smp
153   policies:
154     BE_Affinity_policy:
155       type: org.openecomp.policies.placement.Colocate
156       properties:
157         name: def
158         affinity: host
159       targets:
160       - BE_Affinity_group
161     FE_SMP_Affinity_policy:
162       type: org.openecomp.policies.placement.Colocate
163       properties:
164         name: abc
165         affinity: host
166       targets:
167       - FE_SMP_Affinity_group