4096acade3547115d06a57097ec945c1f6e17968
[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         compute_smp_name:
115         - get_input: smp_name_1
116         compute_smp_availability_zone:
117         - get_input: availability_zone_0
118         port_port1_replacement_policy:
119         - AUTO
120         port_port1_network:
121         - get_input: port_name
122         vm_flavor_name:
123           get_input: flavor_smp_name
124         compute_smp_user_data_format:
125         - RAW
126         vm_image_name:
127           get_input: image_smp_name
128         port_port1_subinterface_indicator:
129         - false
130         port_port1_ip_requirements:
131         - ip_version: 4
132           ip_count_required:
133             is_required: false
134           floating_ip_count_required:
135             is_required: false
136         port_port1_mac_requirements:
137           mac_count_required:
138             is_required: false
139         compute_smp_metadata:
140         - jx_vm_role: smp2
141           vnf_id:
142             get_input: vnf_id
143           jx_lab_name:
144             get_input: lab_name
145         compute_smp_scheduler_hints:
146         - group: BE_Affinity_group
147         service_template_filter:
148           substitute_service_template: Nested_smpServiceTemplate.yaml
149           count: 1
150         index_value:
151           get_property:
152           - SELF
153           - service_template_filter
154           - index_value
155     port2:
156       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
157       properties:
158         replacement_policy: AUTO
159         ip_requirements:
160         - ip_version: 4
161           ip_count_required:
162             is_required: false
163           floating_ip_count_required:
164             is_required: false
165         mac_requirements:
166           mac_count_required:
167             is_required: false
168         network:
169           get_input: port_name
170   groups:
171     hot-mog-0108-bs1271_group:
172       type: org.openecomp.groups.heat.HeatStack
173       properties:
174         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
175         description: ASC Template
176       members:
177       - port2
178       - abstract_smp
179     BE_Affinity_group:
180       type: tosca.groups.Root
181       members:
182       - abstract_smp
183   policies:
184     BE_Affinity_policy:
185       type: org.openecomp.policies.placement.Colocate
186       properties:
187         name: def
188         affinity: host
189       targets:
190       - BE_Affinity_group