4abc7ca681c35dc013b68810f344a410076ee804
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - NovaServerGlobalTypes:
6     file: NovaServerGlobalTypesServiceTemplate.yaml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui_image:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10     properties:
11       admin_pass:
12         description: The administrator password for the server
13         type: string
14         status: SUPPORTED
15         default: overridden default value
16         required: false
17       new_property:
18         description: new property
19         type: string
20         status: SUPPORTED
21         required: false
22     interfaces:
23       Standard:
24         type: tosca.interfaces.node.lifecycle.Standard
25         inputs:
26           url_path:
27             type: string
28           interfaceID:
29             type: string
30         create:
31           inputs:
32             peering:
33               type: string
34         config:
35           inputs:
36             name:
37               type: string
38   org.openecomp.resource.vfc.nodes.heat.cmaui_image_extend:
39     derived_from: org.openecomp.resource.vfc.nodes.heat.cmaui_image
40     interfaces:
41       Standard:
42         inputs:
43           url_path:
44             type: string
45             required: false
46         type: tosca.interfaces.node.lifecycle.Standard
47         create:
48           inputs:
49             peeringSessions:
50               type: string
51             name:
52               type: string
53         start:
54           inputs:
55             time:
56               type: string
57
58 data_types:
59   org.openecomp.datatypes.heat.network.MyAddressPair:
60     derived_from: org.openecomp.datatypes.heat.network.AddressPair
61     description: My MAC/IP address pairs
62     properties:
63       mac_address:
64         description: MAC address
65         type: string
66         status: SUPPORTED
67         required: false
68         default: overridden default value
69       new_property:
70         description: new property
71         type: string
72         status: SUPPORTED
73         required: false
74   org.openecomp.datatypes.heat.network.MyNewAddressPair:
75     derived_from: org.openecomp.datatypes.heat.network.MyAddressPair
76     description: My new MAC/IP address pairs
77     properties:
78       mac_address:
79         description: MAC address
80         type: string
81         status: SUPPORTED
82         required: true
83         default: overridden default value
84 topology_template:
85   inputs:
86     cmaui_names:
87       hidden: false
88       immutable: false
89       type: list
90       description: CMAUI1, CMAUI2 server names
91       entry_schema:
92         type: String
93     p1:
94       hidden: false
95       immutable: false
96       type: string
97       description: UID of OAM network
98     cmaui_image:
99       hidden: false
100       immutable: false
101       type: string
102       description: Image for CMAUI server
103     cmaui_flavor:
104       hidden: false
105       immutable: false
106       type: string
107       description: Flavor for CMAUI server
108     security_group_name:
109       hidden: false
110       immutable: false
111       description: not impotrtant
112     availability_zone_0:
113       label: availabilityzone name
114       hidden: false
115       immutable: false
116       type: string
117       description: availabilityzone name
118   node_templates:
119     server_cmaui:
120       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
121       properties:
122         flavor:
123           get_input: cmaui_flavor
124         availability_zone:
125           get_input: availability_zone_0
126         image:
127           get_input: cmaui_image
128         name:
129           get_input:
130           - cmaui_names
131           - 0
132     cmaui_port_0:
133       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
134       properties:
135         replacement_policy: AUTO
136         security_groups:
137         - get_input: security_group_name
138         fixed_ips:
139         - ip_address:
140             get_input:
141             - cmaui_oam_ips
142             - 0
143         network:
144           get_input: p1
145       requirements:
146       - binding:
147           capability: tosca.capabilities.network.Bindable
148           node: server_cmaui
149           relationship: tosca.relationships.network.BindsTo
150     cmaui1_port_1:
151           type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
152           properties:
153             replacement_policy: AUTO
154             security_groups:
155             - get_input: security_group_name
156             fixed_ips:
157             - subnet: subnetNameVal
158               ip_address:
159                 get_input:
160                 - cmaui_oam_ips
161                 - 1
162             - subnet: subnetNameVal2
163               ip_address:
164                 get_input:
165                 - cmaui_oam_ips
166                 - 1
167             network: jsa_net
168           requirements:
169           - link:
170               capability: tosca.capabilities.network.Linkable
171               node: jsa_net1
172               relationship: tosca.relationships.network.LinksTo
173           - link:
174               capability: tosca.capabilities.network.Linkable
175               node: jsa_net2
176               relationship: tosca.relationships.network.LinksTo
177           - binding:
178               capability: tosca.capabilities.network.Bindable
179               node: server_cmaui
180               relationship: tosca.relationships.network.BindsTo
181     jsa_net1:
182           type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
183           properties:
184             shared: true
185             network_name:
186               get_input: jsa_net_name
187     jsa_net2:
188               type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
189               properties:
190                 shared: true
191                 network_name:
192                   get_input: jsa_net_name
193   groups:
194     nested:
195       type: org.openecomp.groups.heat.HeatStack
196       properties:
197         heat_file: ../Artifacts/nested.yml
198         description: cmaui server template for vMMSC
199       members:
200       - server_cmaui
201       - cmaui_port_0
202   substitution_mappings:
203     node_type: org.openecomp.resource.abstract.nodes.heat.nested
204     capabilities:
205       host_server_cmaui:
206       - server_cmaui
207       - host
208       os_server_cmaui:
209       - server_cmaui
210       - os
211       endpoint_server_cmaui:
212       - server_cmaui
213       - endpoint
214       binding_server_cmaui:
215       - server_cmaui
216       - binding
217       scalable_server_cmaui:
218       - server_cmaui
219       - scalable
220       attachment_cmaui_port_0:
221       - cmaui_port_0
222       - attachment
223     requirements:
224       local_storage_server_cmaui:
225       - server_cmaui
226       - local_storage
227       link_cmaui_port_0:
228       - cmaui_port_0
229       - link
230       link_cmaui_port_invalid:
231       - cmaui_port_9
232       - link