[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttocontrailv2virtualnetworkconnection / shared / expectedoutputfiles / MainServiceTemplate.yaml
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     left_vn_fqdn:
12       hidden: false
13       immutable: false
14       type: string
15       description: dummy
16     Internal1_cidr:
17       hidden: false
18       immutable: false
19       type: string
20     src_port_start:
21       hidden: false
22       immutable: false
23       type: string
24       description: dummy
25     Internal1_default_gateway:
26       hidden: false
27       immutable: false
28       type: string
29     Internal1_dhcp:
30       hidden: false
31       immutable: false
32       type: string
33     src_port_end:
34       hidden: false
35       immutable: false
36       type: string
37       description: dummy
38     policy_name:
39       hidden: false
40       immutable: false
41       type: string
42       description: dummy
43     dst_port_end:
44       hidden: false
45       immutable: false
46       type: string
47       description: dummy
48     simple_action:
49       hidden: false
50       immutable: false
51       type: string
52       description: dummy
53     service_instance_fq_name:
54       hidden: false
55       immutable: false
56       type: string
57     jsa_net_name:
58       hidden: false
59       immutable: false
60       type: string
61       description: network name of jsa log network
62     Internal2_cidr:
63       hidden: false
64       immutable: false
65       type: string
66     protocol:
67       hidden: false
68       immutable: false
69       type: string
70       description: dummy
71     shared_network_id1:
72       hidden: false
73       immutable: false
74       type: string
75       description: network name of jsa log network
76     Internal2_dhcp:
77       hidden: false
78       immutable: false
79       type: string
80     shared_network_id2:
81       hidden: false
82       immutable: false
83       type: string
84       description: network name of jsa log network
85     dst_port_start:
86       hidden: false
87       immutable: false
88       type: string
89       description: dummy
90     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
91       hidden: false
92       immutable: false
93       type: string
94       description: dummy
95     Internal2_default_gateway:
96       hidden: false
97       immutable: false
98       type: string
99     right_vn_fqdn:
100       hidden: false
101       immutable: false
102       type: string
103       description: dummy
104     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
105       hidden: false
106       immutable: false
107       type: string
108       description: dummy
109     left_vn:
110       hidden: false
111       immutable: false
112       type: string
113       description: dummy
114     direction:
115       hidden: false
116       immutable: false
117       type: string
118       description: dummy
119     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
120       hidden: false
121       immutable: false
122       type: string
123       description: dummy
124   node_templates:
125     template_NetworkPolicy:
126       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
127       properties:
128         name:
129           get_input: policy_name
130         network_policy_entries:
131           network_policy_entries_policy_rule:
132           - network_policy_entries_policy_rule_dst_addresses:
133             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
134                 get_input: right_vn_fqdn
135             network_policy_entries_policy_rule_dst_ports:
136             - network_policy_entries_policy_rule_dst_ports_start_port:
137                 get_input: dst_port_start
138               network_policy_entries_policy_rule_dst_ports_end_port:
139                 get_input: dst_port_end
140             network_policy_entries_policy_rule_protocol:
141               get_input: protocol
142             network_policy_entries_policy_rule_src_addresses:
143             - network_policy_entries_policy_rule_src_addresses_virtual_network:
144                 get_input: left_vn_fqdn
145             network_policy_entries_policy_rule_direction:
146               get_input: direction
147             network_policy_entries_policy_rule_src_ports:
148             - network_policy_entries_policy_rule_src_ports_start_port:
149                 get_input: src_port_start
150               network_policy_entries_policy_rule_src_ports_end_port:
151                 get_input: src_port_end
152             network_policy_entries_policy_rule_action_list:
153               network_policy_entries_policy_rule_action_list_simple_action:
154                 get_input: simple_action
155               network_policy_entries_policy_rule_action_list_apply_service:
156               - get_input: service_instance_fq_name
157       requirements:
158       - network:
159           capability: tosca.capabilities.Attachment
160           node: test_net1
161           relationship: org.openecomp.relationships.AttachesTo
162       - network:
163           capability: tosca.capabilities.Attachment
164           node: test_net2
165           relationship: org.openecomp.relationships.AttachesTo
166     test_net2:
167       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
168       properties:
169         network_ipam_refs_data:
170         - network_ipam_refs_data_ipam_subnets:
171           - network_ipam_refs_data_ipam_subnets_subnet:
172               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
173                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
174               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
175                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
176             network_ipam_refs_data_ipam_subnets_addr_from_start:
177               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
178         network_policy_refs_data:
179         - network_policy_refs_data_sequence:
180             network_policy_refs_data_sequence_major: 0
181             network_policy_refs_data_sequence_minor: 0
182         network_name:
183           get_input: left_vn
184         network_ipam_refs:
185         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
186         network_policy_refs:
187         - list_join:
188           - ':'
189           - get_attribute:
190             - template_NetworkPolicy
191             - fq_name
192       requirements:
193       - dependency:
194           capability: tosca.capabilities.Node
195           node: template_NetworkPolicy
196           relationship: tosca.relationships.DependsOn
197     test_nested2:
198       type: org.openecomp.resource.abstract.nodes.heat.nested2
199       directives:
200       - substitutable
201       properties:
202         p1:
203           get_input: shared_network_id1
204         service_template_filter:
205           substitute_service_template: nested2ServiceTemplate.yaml
206       requirements:
207       - link_cmaui_port_1:
208           capability: tosca.capabilities.network.Linkable
209           node: test_net1
210           relationship: tosca.relationships.network.LinksTo
211     test_nested3:
212       type: org.openecomp.resource.abstract.nodes.heat.nested1
213       directives:
214       - substitutable
215       properties:
216         p1:
217           get_input: shared_network_id1
218         service_template_filter:
219           substitute_service_template: nested1ServiceTemplate.yaml
220         p2:
221           get_input: shared_network_id2
222       requirements:
223       - link_cmaui_port_2:
224           capability: tosca.capabilities.network.Linkable
225           node: test_net2
226           relationship: tosca.relationships.network.LinksTo
227       - link_abc_port_1:
228           capability: tosca.capabilities.network.Linkable
229           node: test_net2
230           relationship: tosca.relationships.network.LinksTo
231       - link_cmaui_port_1:
232           capability: tosca.capabilities.network.Linkable
233           node: test_net1
234           relationship: tosca.relationships.network.LinksTo
235     test_net1:
236       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
237       properties:
238         network_ipam_refs_data:
239         - network_ipam_refs_data_ipam_subnets:
240           - network_ipam_refs_data_ipam_subnets_subnet:
241               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
242                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
243               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
244                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
245             network_ipam_refs_data_ipam_subnets_addr_from_start:
246               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
247         network_policy_refs_data:
248         - network_policy_refs_data_sequence:
249             network_policy_refs_data_sequence_major: 0
250             network_policy_refs_data_sequence_minor: 0
251         network_name:
252           get_input: left_vn
253         network_ipam_refs:
254         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
255         network_policy_refs:
256         - list_join:
257           - ':'
258           - get_attribute:
259             - template_NetworkPolicy
260             - fq_name
261       requirements:
262       - dependency:
263           capability: tosca.capabilities.Node
264           node: template_NetworkPolicy
265           relationship: tosca.relationships.DependsOn
266     test_nested1:
267       type: org.openecomp.resource.abstract.nodes.heat.nested1
268       directives:
269       - substitutable
270       properties:
271         p1:
272           get_input: shared_network_id1
273         service_template_filter:
274           substitute_service_template: nested1ServiceTemplate.yaml
275         p2:
276           get_input: shared_network_id2
277       requirements:
278       - link_cmaui_port_2:
279           capability: tosca.capabilities.network.Linkable
280           node: test_net2
281           relationship: tosca.relationships.network.LinksTo
282       - link_abc_port_1:
283           capability: tosca.capabilities.network.Linkable
284           node: test_net2
285           relationship: tosca.relationships.network.LinksTo
286       - link_cmaui_port_1:
287           capability: tosca.capabilities.network.Linkable
288           node: test_net1
289           relationship: tosca.relationships.network.LinksTo
290   groups:
291     main_group:
292       type: org.openecomp.groups.heat.HeatStack
293       properties:
294         heat_file: ../Artifacts/main.yml
295         description: |
296           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
297       members:
298       - template_NetworkPolicy
299       - test_net2
300       - test_net1
301     addOn_group:
302       type: org.openecomp.groups.heat.HeatStack
303       properties:
304         heat_file: ../Artifacts/addOn.yml
305         description: |
306           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
307       members:
308       - test_nested2
309       - test_nested3
310       - test_nested1