3ff238743dbc9700d68db6c44c1a5c597b9e1754
[sdc.git] /
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 topology_template:
10   inputs:
11     port_name:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - hot-mog-0108-bs1271
20             source_type: HEAT
21             param_name: port_name
22       type: string
23       description: port name
24       default: port_name
25     vnf_id:
26       hidden: false
27       immutable: false
28       annotations:
29         source:
30           type: org.openecomp.annotations.Source
31           properties:
32             vf_module_label:
33             - hot-mog-0108-bs1271
34             source_type: HEAT
35             param_name: vnf_id
36       type: string
37       description: Unique ID for this VNF instance
38       default: This_is_ths_SCP_id
39     smp_name_1:
40       hidden: false
41       immutable: false
42       annotations:
43         source:
44           type: org.openecomp.annotations.Source
45           properties:
46             vf_module_label:
47             - hot-mog-0108-bs1271
48             source_type: HEAT
49             param_name: smp_name_1
50       type: string
51       description: name of VM
52       default: vSMP2
53     flavor_smp_name:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - hot-mog-0108-bs1271
62             source_type: HEAT
63             param_name: flavor_smp_name
64       type: string
65       description: SCP SMP Flavor
66       default: m3.xlarge
67     image_smp_name:
68       hidden: false
69       immutable: false
70       annotations:
71         source:
72           type: org.openecomp.annotations.Source
73           properties:
74             vf_module_label:
75             - hot-mog-0108-bs1271
76             source_type: HEAT
77             param_name: image_smp_name
78       type: string
79       description: SCP SMP image
80       default: asc_base_image_smp
81     availability_zone_0:
82       hidden: false
83       immutable: false
84       annotations:
85         source:
86           type: org.openecomp.annotations.Source
87           properties:
88             vf_module_label:
89             - hot-mog-0108-bs1271
90             source_type: HEAT
91             param_name: availability_zone_0
92       type: string
93       default: zone_1
94     lab_name:
95       hidden: false
96       immutable: false
97       annotations:
98         source:
99           type: org.openecomp.annotations.Source
100           properties:
101             vf_module_label:
102             - hot-mog-0108-bs1271
103             source_type: HEAT
104             param_name: lab_name
105       type: string
106       description: Lab name
107       default: Lab-1
108   node_templates:
109     abstract_smp:
110       type: org.openecomp.resource.abstract.nodes.smp
111       directives:
112       - substitutable
113       properties:
114         port_port_mac_requirements:
115           mac_count_required:
116             is_required: false
117         port_port_network:
118         - get_input: port_name
119         compute_smp_name:
120         - get_input: smp_name_1
121         compute_smp_availability_zone:
122         - get_input: availability_zone_0
123         vm_flavor_name:
124           get_input: flavor_smp_name
125         compute_smp_user_data_format:
126         - RAW
127         port_port_ip_requirements:
128         - ip_version: 4
129           ip_count_required:
130             is_required: false
131           floating_ip_count_required:
132             is_required: false
133         - ip_version: 6
134           ip_count_required:
135             is_required: false
136           floating_ip_count_required:
137             is_required: false
138         vm_image_name:
139           get_input: image_smp_name
140         compute_smp_metadata:
141         - jx_vm_role: smp2
142           vnf_id:
143             get_input: vnf_id
144           jx_lab_name:
145             get_input: lab_name
146         port_port_replacement_policy:
147         - AUTO
148         compute_smp_scheduler_hints:
149         - group: BE_Affinity_group
150         service_template_filter:
151           substitute_service_template: Nested_smpServiceTemplate.yaml
152           count: 1
153         index_value:
154           get_property:
155           - SELF
156           - service_template_filter
157           - index_value
158     port2:
159       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
160       properties:
161         replacement_policy: AUTO
162         ip_requirements:
163         - ip_version: 4
164           ip_count_required:
165             is_required: false
166           floating_ip_count_required:
167             is_required: false
168         - ip_version: 6
169           ip_count_required:
170             is_required: false
171           floating_ip_count_required:
172             is_required: false
173         mac_requirements:
174           mac_count_required:
175             is_required: false
176         network:
177           get_input: port_name
178   groups:
179     hot-mog-0108-bs1271_group:
180       type: org.openecomp.groups.heat.HeatStack
181       properties:
182         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
183         description: ASC Template
184       members:
185       - port2
186       - abstract_smp
187     BE_Affinity_group:
188       type: tosca.groups.Root
189       members:
190       - abstract_smp
191   policies:
192     BE_Affinity_policy:
193       type: org.openecomp.policies.placement.Colocate
194       properties:
195         name: def
196         affinity: host
197       targets:
198       - BE_Affinity_group