17cfe33592e7b37df11b2356586b7b99e099b6b9
[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         type: amdocs.interfaces.interfaceNoOper
43         inputs:
44           url_path:
45             type: string
46             required: false
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
59   org.openecomp.resource.vfc.nodes.heat.cmaui_image_interfaceTest:
60     derived_from: org.openecomp.resource.vfc.nodes.heat.cmaui_image
61     interfaces:
62       Standard:
63         type: amdocs.interfaces.interfaceInheritance
64         inputs:
65           url_path:
66             type: string
67             required: false
68         newOper:
69           inputs:
70             name:
71               type: string
72
73 data_types:
74   org.openecomp.datatypes.heat.network.MyAddressPair:
75     derived_from: org.openecomp.datatypes.heat.network.AddressPair
76     description: My MAC/IP address pairs
77     properties:
78       mac_address:
79         description: MAC address
80         type: string
81         status: SUPPORTED
82         required: false
83         default: overridden default value
84       new_property:
85         description: new property
86         type: string
87         status: SUPPORTED
88         required: false
89   org.openecomp.datatypes.heat.network.MyNewAddressPair:
90     derived_from: org.openecomp.datatypes.heat.network.MyAddressPair
91     description: My new MAC/IP address pairs
92     properties:
93       mac_address:
94         description: MAC address
95         type: string
96         status: SUPPORTED
97         required: true
98         default: overridden default value
99 interface_types:
100   amdocs.interfaces.interfaceNoOper:
101     derived_from: tosca.interfaces.node.lifecycle.Standard
102
103   amdocs.interfaces.interfaceInheritance:
104     derived_from: tosca.interfaces.node.lifecycle.Standard
105     newOper:
106       description: new operation
107
108
109 topology_template:
110   inputs:
111     cmaui_names:
112       hidden: false
113       immutable: false
114       type: list
115       description: CMAUI1, CMAUI2 server names
116       entry_schema:
117         type: String
118     p1:
119       hidden: false
120       immutable: false
121       type: string
122       description: UID of OAM network
123     cmaui_image:
124       hidden: false
125       immutable: false
126       type: string
127       description: Image for CMAUI server
128     cmaui_flavor:
129       hidden: false
130       immutable: false
131       type: string
132       description: Flavor for CMAUI server
133     security_group_name:
134       hidden: false
135       immutable: false
136       description: not impotrtant
137     availability_zone_0:
138       label: availabilityzone name
139       hidden: false
140       immutable: false
141       type: string
142       description: availabilityzone name
143   node_templates:
144     server_cmaui:
145       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
146       properties:
147         flavor:
148           get_input: cmaui_flavor
149         availability_zone:
150           get_input: availability_zone_0
151         image:
152           get_input: cmaui_image
153         name:
154           get_input:
155           - cmaui_names
156           - 0
157     cmaui_port_0:
158       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
159       properties:
160         replacement_policy: AUTO
161         security_groups:
162         - get_input: security_group_name
163         fixed_ips:
164         - ip_address:
165             get_input:
166             - cmaui_oam_ips
167             - 0
168         network:
169           get_input: p1
170       requirements:
171       - binding:
172           capability: tosca.capabilities.network.Bindable
173           node: server_cmaui
174           relationship: tosca.relationships.network.BindsTo
175     cmaui1_port_1:
176       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
177       properties:
178         replacement_policy: AUTO
179         security_groups:
180         - get_input: security_group_name
181         fixed_ips:
182         - subnet: subnetNameVal
183           ip_address:
184             get_input:
185             - cmaui_oam_ips
186             - 1
187         - subnet: subnetNameVal2
188           ip_address:
189             get_input:
190             - cmaui_oam_ips
191             - 1
192         network: jsa_net
193       requirements:
194       - link:
195           capability: tosca.capabilities.network.Linkable
196           node: jsa_net1
197           relationship: tosca.relationships.network.LinksTo
198       - link:
199           capability: tosca.capabilities.network.Linkable
200           node: jsa_net2
201           relationship: tosca.relationships.network.LinksTo
202       - binding:
203           capability: tosca.capabilities.network.Bindable
204           node: server_cmaui
205           relationship: tosca.relationships.network.BindsTo
206     jsa_net1:
207       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
208       properties:
209         shared: true
210         network_name:
211           get_input: jsa_net_name
212     jsa_net2:
213       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
214       properties:
215         shared: true
216         network_name:
217           get_input: jsa_net_name
218   groups:
219     nested:
220       type: org.openecomp.groups.heat.HeatStack
221       properties:
222         heat_file: ../Artifacts/nested.yml
223         description: cmaui server template for vMMSC
224       members:
225       - server_cmaui
226       - cmaui_port_0
227   substitution_mappings:
228     node_type: org.openecomp.resource.abstract.nodes.heat.nested
229     capabilities:
230       host_server_cmaui:
231       - server_cmaui
232       - host
233       os_server_cmaui:
234       - server_cmaui
235       - os
236       endpoint_server_cmaui:
237       - server_cmaui
238       - endpoint
239       binding_server_cmaui:
240       - server_cmaui
241       - binding
242       scalable_server_cmaui:
243       - server_cmaui
244       - scalable
245       attachment_cmaui_port_0:
246       - cmaui_port_0
247       - attachment
248     requirements:
249       local_storage_server_cmaui:
250       - server_cmaui
251       - local_storage
252       link_cmaui_port_0:
253       - cmaui_port_0
254       - link
255       link_cmaui_port_invalid:
256       - cmaui_port_9
257       - link