37b242b53fbd4a875bd523fdc4d0078f439aac4a
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - NeutronPortGlobalTypes:
6     file: missingFile.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 data_types:
23   org.openecomp.datatypes.heat.network.MyAddressPair:
24     derived_from: org.openecomp.datatypes.heat.network.AddressPair
25     description: My MAC/IP address pairs
26     properties:
27       mac_address:
28         description: MAC address
29         type: string
30         status: SUPPORTED
31         required: false
32         default: overridden default value
33       new_property:
34         description: new property
35         type: string
36         status: SUPPORTED
37         required: false
38   org.openecomp.datatypes.heat.network.MyNewAddressPair:
39     derived_from: org.openecomp.datatypes.heat.network.MyAddressPair
40     description: My new MAC/IP address pairs
41     properties:
42       mac_address:
43         description: MAC address
44         type: string
45         status: SUPPORTED
46         required: true
47         default: overridden default value
48 topology_template:
49   inputs:
50     cmaui_names:
51       hidden: false
52       immutable: false
53       type: list
54       description: CMAUI1, CMAUI2 server names
55       entry_schema:
56         type: String
57     p1:
58       hidden: false
59       immutable: false
60       type: string
61       description: UID of OAM network
62     cmaui_image:
63       hidden: false
64       immutable: false
65       type: string
66       description: Image for CMAUI server
67     cmaui_flavor:
68       hidden: false
69       immutable: false
70       type: string
71       description: Flavor for CMAUI server
72     security_group_name:
73       hidden: false
74       immutable: false
75       description: not impotrtant
76     availability_zone_0:
77       label: availabilityzone name
78       hidden: false
79       immutable: false
80       type: string
81       description: availabilityzone name
82   node_templates:
83     server_cmaui:
84       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
85       properties:
86         flavor:
87           get_input: cmaui_flavor
88         availability_zone:
89           get_input: availability_zone_0
90         image:
91           get_input: cmaui_image
92         name:
93           get_input:
94           - cmaui_names
95           - 0
96     cmaui_port_0:
97       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
98       properties:
99         replacement_policy: AUTO
100         security_groups:
101         - get_input: security_group_name
102         fixed_ips:
103         - ip_address:
104             get_input:
105             - cmaui_oam_ips
106             - 0
107         network:
108           get_input: p1
109       requirements:
110       - binding:
111           capability: tosca.capabilities.network.Bindable
112           node: server_cmaui
113           relationship: tosca.relationships.network.BindsTo
114     cmaui1_port_1:
115           type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
116           properties:
117             replacement_policy: AUTO
118             security_groups:
119             - get_input: security_group_name
120             fixed_ips:
121             - subnet: subnetNameVal
122               ip_address:
123                 get_input:
124                 - cmaui_oam_ips
125                 - 1
126             - subnet: subnetNameVal2
127               ip_address:
128                 get_input:
129                 - cmaui_oam_ips
130                 - 1
131             network: jsa_net
132           requirements:
133           - link:
134               capability: tosca.capabilities.network.Linkable
135               node: jsa_net1
136               relationship: tosca.relationships.network.LinksTo
137           - link:
138               capability: tosca.capabilities.network.Linkable
139               node: jsa_net2
140               relationship: tosca.relationships.network.LinksTo
141           - binding:
142               capability: tosca.capabilities.network.Bindable
143               node: server_cmaui
144               relationship: tosca.relationships.network.BindsTo
145     jsa_net1:
146           type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
147           properties:
148             shared: true
149             network_name:
150               get_input: jsa_net_name
151     jsa_net2:
152               type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
153               properties:
154                 shared: true
155                 network_name:
156                   get_input: jsa_net_name
157   groups:
158     nested:
159       type: org.openecomp.groups.heat.HeatStack
160       properties:
161         heat_file: ../Artifacts/nested.yml
162         description: cmaui server template for vMMSC
163       members:
164       - server_cmaui
165       - cmaui_port_0
166   substitution_mappings:
167     node_type: org.openecomp.resource.abstract.nodes.heat.nested
168     capabilities:
169       host_server_cmaui:
170       - server_cmaui
171       - host
172       os_server_cmaui:
173       - server_cmaui
174       - os
175       endpoint_server_cmaui:
176       - server_cmaui
177       - endpoint
178       binding_server_cmaui:
179       - server_cmaui
180       - binding
181       scalable_server_cmaui:
182       - server_cmaui
183       - scalable
184       attachment_cmaui_port_0:
185       - cmaui_port_0
186       - attachment
187     requirements:
188       local_storage_server_cmaui:
189       - server_cmaui
190       - local_storage
191       link_cmaui_port_0:
192       - cmaui_port_0
193       - link
194       link_cmaui_port_invalid:
195       - cmaui_port_9
196       - link