bcadf520d3cbef193524b35a70e09dd55ccbe501
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested1
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     cmaui_names:
12       hidden: false
13       immutable: false
14       type: list
15       description: CMAUI1, CMAUI2 server names
16       entry_schema:
17         type: string
18     p1:
19       hidden: false
20       immutable: false
21       type: string
22       description: UID of OAM network
23     p2:
24       hidden: false
25       immutable: false
26       type: string
27       description: UID of OAM network
28     cmaui_image:
29       hidden: false
30       immutable: false
31       type: string
32       description: Image for CMAUI server
33     cmaui_flavor:
34       hidden: false
35       immutable: false
36       type: string
37       description: Flavor for CMAUI server
38     packet_internal_network_name:
39       hidden: false
40       immutable: false
41       type: string
42     packet_external_network_name:
43       hidden: false
44       immutable: false
45       type: string
46     security_group_name:
47       hidden: false
48       immutable: false
49       type: list
50       description: CMAUI1, CMAUI2 server names
51       entry_schema:
52         type: string
53     availability_zone_0:
54       label: availabilityzone name
55       hidden: false
56       immutable: false
57       type: string
58       description: availabilityzone name
59     cmaui_oam_ips:
60       hidden: false
61       immutable: false
62       type: string
63     net:
64       hidden: false
65       immutable: false
66       type: string
67   node_templates:
68     cmaui_port_2:
69       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
70       properties:
71         replacement_policy: AUTO
72         ip_requirements:
73         - ip_version: 4
74           ip_count_required:
75             is_required: true
76           floating_ip_count_required:
77             is_required: false
78         - ip_version: 6
79           ip_count_required:
80             is_required: false
81           floating_ip_count_required:
82             is_required: false
83         fixed_ips:
84         - ip_address:
85             get_input:
86             - cmaui_oam_ips
87             - 0
88         mac_requirements:
89           mac_count_required:
90             is_required: false
91         network: packet_external_network
92       requirements:
93       - link:
94           capability: tosca.capabilities.network.Linkable
95           node: packet_external_network
96           relationship: tosca.relationships.network.LinksTo
97     packet_external_network:
98       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
99       properties:
100         network_name:
101           get_input: packet_external_network_name
102     packet_internal_network:
103       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
104       properties:
105         network_name:
106           get_input: packet_internal_network_name
107     cmaui_port_1:
108       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
109       properties:
110         replacement_policy: AUTO
111         ip_requirements:
112         - ip_version: 4
113           ip_count_required:
114             is_required: true
115           floating_ip_count_required:
116             is_required: false
117         - ip_version: 6
118           ip_count_required:
119             is_required: false
120           floating_ip_count_required:
121             is_required: false
122         fixed_ips:
123         - ip_address:
124             get_input:
125             - cmaui_oam_ips
126             - 0
127         mac_requirements:
128           mac_count_required:
129             is_required: false
130         network: packet_internal_network
131       requirements:
132       - link:
133           capability: tosca.capabilities.network.Linkable
134           node: packet_internal_network
135           relationship: tosca.relationships.network.LinksTo
136   groups:
137     nested1_group:
138       type: org.openecomp.groups.heat.HeatStack
139       properties:
140         heat_file: ../Artifacts/nested1.yml
141         description: nested1
142       members:
143       - cmaui_port_2
144       - packet_external_network
145       - packet_internal_network
146       - cmaui_port_1
147   substitution_mappings:
148     node_type: org.openecomp.resource.abstract.nodes.heat.nested1
149     capabilities:
150       network.incoming.packets_cmaui_port_2:
151       - cmaui_port_2
152       - network.incoming.packets
153       network.incoming.packets_cmaui_port_1:
154       - cmaui_port_1
155       - network.incoming.packets
156       network.incoming.packets.rate_cmaui_port_1:
157       - cmaui_port_1
158       - network.incoming.packets.rate
159       network.incoming.packets.rate_cmaui_port_2:
160       - cmaui_port_2
161       - network.incoming.packets.rate
162       feature_cmaui_port_1:
163       - cmaui_port_1
164       - feature
165       feature_cmaui_port_2:
166       - cmaui_port_2
167       - feature
168       end_point_packet_internal_network:
169       - packet_internal_network
170       - end_point
171       link_packet_internal_network:
172       - packet_internal_network
173       - link
174       feature_packet_internal_network:
175       - packet_internal_network
176       - feature
177       end_point_packet_external_network:
178       - packet_external_network
179       - end_point
180       attachment_cmaui_port_2:
181       - cmaui_port_2
182       - attachment
183       network.outgoing.bytes_cmaui_port_2:
184       - cmaui_port_2
185       - network.outgoing.bytes
186       network.outgoing.packets.rate_cmaui_port_1:
187       - cmaui_port_1
188       - network.outgoing.packets.rate
189       network.outgoing.packets.rate_cmaui_port_2:
190       - cmaui_port_2
191       - network.outgoing.packets.rate
192       network.outgoing.bytes_cmaui_port_1:
193       - cmaui_port_1
194       - network.outgoing.bytes
195       attachment_cmaui_port_1:
196       - cmaui_port_1
197       - attachment
198       binding_cmaui_port_1:
199       - cmaui_port_1
200       - binding
201       binding_cmaui_port_2:
202       - cmaui_port_2
203       - binding
204       network.incoming.bytes.rate_cmaui_port_1:
205       - cmaui_port_1
206       - network.incoming.bytes.rate
207       network.incoming.bytes.rate_cmaui_port_2:
208       - cmaui_port_2
209       - network.incoming.bytes.rate
210       attachment_packet_internal_network:
211       - packet_internal_network
212       - attachment
213       network.outpoing.packets_cmaui_port_1:
214       - cmaui_port_1
215       - network.outpoing.packets
216       network.outpoing.packets_cmaui_port_2:
217       - cmaui_port_2
218       - network.outpoing.packets
219       network.outgoing.bytes.rate_cmaui_port_2:
220       - cmaui_port_2
221       - network.outgoing.bytes.rate
222       network.outgoing.bytes.rate_cmaui_port_1:
223       - cmaui_port_1
224       - network.outgoing.bytes.rate
225       forwarder_cmaui_port_2:
226       - cmaui_port_2
227       - forwarder
228       forwarder_cmaui_port_1:
229       - cmaui_port_1
230       - forwarder
231       attachment_packet_external_network:
232       - packet_external_network
233       - attachment
234       network.incoming.bytes_cmaui_port_2:
235       - cmaui_port_2
236       - network.incoming.bytes
237       link_packet_external_network:
238       - packet_external_network
239       - link
240       feature_packet_external_network:
241       - packet_external_network
242       - feature
243       network.incoming.bytes_cmaui_port_1:
244       - cmaui_port_1
245       - network.incoming.bytes
246     requirements:
247       binding_cmaui_port_1:
248       - cmaui_port_1
249       - binding
250       binding_cmaui_port_2:
251       - cmaui_port_2
252       - binding
253       dependency_packet_internal_network:
254       - packet_internal_network
255       - dependency
256       dependency_cmaui_port_1:
257       - cmaui_port_1
258       - dependency
259       dependency_cmaui_port_2:
260       - cmaui_port_2
261       - dependency
262       dependency_packet_external_network:
263       - packet_external_network
264       - dependency