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