f74dda879b78e8646ea0239ed933ad4b4882b665
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     Internal1_shared:
12       hidden: false
13       immutable: false
14       type: string
15     Internal1_forwarding_mode:
16       hidden: false
17       immutable: false
18       type: string
19     Internal2_net_name:
20       hidden: false
21       immutable: false
22       type: string
23     Internal2_forwarding_mode:
24       hidden: false
25       immutable: false
26       type: string
27     Internal2_shared:
28       hidden: false
29       immutable: false
30       type: string
31     Internal1_net_name:
32       hidden: false
33       immutable: false
34       type: string
35   node_templates:
36     Internal2-net:
37       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
38       properties:
39         shared:
40           get_input: Internal1_shared
41         forwarding_mode:
42           get_input: Internal1_forwarding_mode
43         network_name:
44           get_input: Internal1_net_name
45     Internal1-net:
46       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
47       properties:
48         shared:
49           get_input: Internal1_shared
50         forwarding_mode:
51           get_input: Internal1_forwarding_mode
52         network_name:
53           get_input: Internal1_net_name
54     test_nested0:
55       type: org.openecomp.resource.abstract.nodes.heat.OCS-fw
56       directives:
57       - substitutable
58       properties:
59         network_param2: Internal2-net
60         service_template_filter:
61           substitute_service_template: OCS-fwServiceTemplate.yaml
62         network_param1: Internal1-net
63       requirements:
64       - link_port_0_service_instance2:
65           capability: tosca.capabilities.network.Linkable
66           node: Internal2-net
67           relationship: tosca.relationships.network.LinksTo
68       - link_port_1_service_instance2:
69           capability: tosca.capabilities.network.Linkable
70           node: Internal1-net
71           relationship: tosca.relationships.network.LinksTo
72       - link_port_2_service_instance2:
73           capability: tosca.capabilities.network.Linkable
74           node: Internal2-net
75           relationship: tosca.relationships.network.LinksTo
76       - link_port_0_service_instance1:
77           capability: tosca.capabilities.network.Linkable
78           node: Internal1-net
79           relationship: tosca.relationships.network.LinksTo
80       - link_port_1_service_instance1:
81           capability: tosca.capabilities.network.Linkable
82           node: Internal1-net
83           relationship: tosca.relationships.network.LinksTo
84       - link_port_2_service_instance1:
85           capability: tosca.capabilities.network.Linkable
86           node: Internal2-net
87           relationship: tosca.relationships.network.LinksTo
88       - link_port_0_service_instance4_test_nested3_test_nested2:
89           capability: tosca.capabilities.network.Linkable
90           node: Internal1-net
91           relationship: tosca.relationships.network.LinksTo
92       - link_port_1_service_instance4_test_nested3_test_nested2:
93           capability: tosca.capabilities.network.Linkable
94           node: Internal1-net
95           relationship: tosca.relationships.network.LinksTo
96       - link_port_2_service_instance4_test_nested3_test_nested2:
97           capability: tosca.capabilities.network.Linkable
98           node: Internal1-net
99           relationship: tosca.relationships.network.LinksTo
100       - link_port_0_service_instance3_test_nested2:
101           capability: tosca.capabilities.network.Linkable
102           node: Internal1-net
103           relationship: tosca.relationships.network.LinksTo
104       - link_port_1_service_instance3_test_nested2:
105           capability: tosca.capabilities.network.Linkable
106           node: Internal1-net
107           relationship: tosca.relationships.network.LinksTo
108       - link_port_2_service_instance3_test_nested2:
109           capability: tosca.capabilities.network.Linkable
110           node: Internal2-net
111           relationship: tosca.relationships.network.LinksTo
112       - link_port_0_service_instance21_test_nested2:
113           capability: tosca.capabilities.network.Linkable
114           node: Internal2-net
115           relationship: tosca.relationships.network.LinksTo
116       - link_port_1_service_instance21_test_nested2:
117           capability: tosca.capabilities.network.Linkable
118           node: Internal1-net
119           relationship: tosca.relationships.network.LinksTo
120       - link_port_2_service_instance21_test_nested2:
121           capability: tosca.capabilities.network.Linkable
122           node: Internal2-net
123           relationship: tosca.relationships.network.LinksTo
124     Internal1-net-1:
125       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
126       properties:
127         shared:
128           get_input: Internal1_shared
129         forwarding_mode:
130           get_input: Internal1_forwarding_mode
131         network_name:
132           get_input: Internal1_net_name
133     test_nested1:
134       type: org.openecomp.resource.abstract.nodes.heat.OCS-fw
135       directives:
136       - substitutable
137       properties:
138         network_param2: Internal2-net-1
139         service_template_filter:
140           substitute_service_template: OCS-fwServiceTemplate.yaml
141         network_param1: Internal1-net-1
142       requirements:
143       - link_port_0_service_instance2:
144           capability: tosca.capabilities.network.Linkable
145           node: Internal2-net-1
146           relationship: tosca.relationships.network.LinksTo
147       - link_port_1_service_instance2:
148           capability: tosca.capabilities.network.Linkable
149           node: Internal1-net-1
150           relationship: tosca.relationships.network.LinksTo
151       - link_port_2_service_instance2:
152           capability: tosca.capabilities.network.Linkable
153           node: Internal2-net-1
154           relationship: tosca.relationships.network.LinksTo
155       - link_port_0_service_instance1:
156           capability: tosca.capabilities.network.Linkable
157           node: Internal1-net-1
158           relationship: tosca.relationships.network.LinksTo
159       - link_port_1_service_instance1:
160           capability: tosca.capabilities.network.Linkable
161           node: Internal1-net-1
162           relationship: tosca.relationships.network.LinksTo
163       - link_port_2_service_instance1:
164           capability: tosca.capabilities.network.Linkable
165           node: Internal2-net-1
166           relationship: tosca.relationships.network.LinksTo
167       - link_port_0_service_instance4_test_nested3_test_nested2:
168           capability: tosca.capabilities.network.Linkable
169           node: Internal1-net-1
170           relationship: tosca.relationships.network.LinksTo
171       - link_port_1_service_instance4_test_nested3_test_nested2:
172           capability: tosca.capabilities.network.Linkable
173           node: Internal1-net-1
174           relationship: tosca.relationships.network.LinksTo
175       - link_port_2_service_instance4_test_nested3_test_nested2:
176           capability: tosca.capabilities.network.Linkable
177           node: Internal1-net-1
178           relationship: tosca.relationships.network.LinksTo
179       - link_port_0_service_instance3_test_nested2:
180           capability: tosca.capabilities.network.Linkable
181           node: Internal1-net-1
182           relationship: tosca.relationships.network.LinksTo
183       - link_port_1_service_instance3_test_nested2:
184           capability: tosca.capabilities.network.Linkable
185           node: Internal1-net-1
186           relationship: tosca.relationships.network.LinksTo
187       - link_port_2_service_instance3_test_nested2:
188           capability: tosca.capabilities.network.Linkable
189           node: Internal2-net-1
190           relationship: tosca.relationships.network.LinksTo
191       - link_port_0_service_instance21_test_nested2:
192           capability: tosca.capabilities.network.Linkable
193           node: Internal2-net-1
194           relationship: tosca.relationships.network.LinksTo
195       - link_port_1_service_instance21_test_nested2:
196           capability: tosca.capabilities.network.Linkable
197           node: Internal1-net-1
198           relationship: tosca.relationships.network.LinksTo
199       - link_port_2_service_instance21_test_nested2:
200           capability: tosca.capabilities.network.Linkable
201           node: Internal2-net-1
202           relationship: tosca.relationships.network.LinksTo
203     Internal2-net-1:
204       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
205       properties:
206         shared:
207           get_input: Internal1_shared
208         forwarding_mode:
209           get_input: Internal1_forwarding_mode
210         network_name:
211           get_input: Internal1_net_name
212   groups:
213     base_group:
214       type: org.openecomp.groups.heat.HeatStack
215       properties:
216         heat_file: ../Artifacts/base.yml
217         description: ASC External Networks Template
218       members:
219       - Internal2-net
220       - Internal1-net
221       - test_nested0
222     addOn_group:
223       type: org.openecomp.groups.heat.HeatStack
224       properties:
225         heat_file: ../Artifacts/addOn.yml
226         description: ASC External Networks Template
227       members:
228       - Internal1-net-1
229       - test_nested1
230       - Internal2-net-1