[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / nested3levels / 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     security_group_name:
12       label: security group name
13       hidden: false
14       immutable: false
15       type: string
16       description: the name of security group
17     shared_security_group_id2:
18       hidden: false
19       immutable: false
20       type: string
21       description: network name of jsa log network
22     jsa_net_name:
23       hidden: false
24       immutable: false
25       type: string
26       description: network name of jsa log network
27     shared_security_group_id1:
28       hidden: false
29       immutable: false
30       type: string
31       description: network name of jsa log network
32   node_templates:
33     jsa_security_group1:
34       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
35       properties:
36         name:
37           get_input: security_group_name
38         description: ems security group
39         rules:
40         - protocol: tcp
41           ethertype: IPv4
42           port_range_max: 65535
43           remote_ip_prefix: 0.0.0.0/0
44           direction: egress
45           port_range_min: 1
46         - protocol: udp
47           ethertype: IPv4
48           port_range_max: 65535
49           remote_ip_prefix: 0.0.0.0/0
50           direction: egress
51           port_range_min: 1
52         - protocol: icmp
53           ethertype: IPv4
54           remote_ip_prefix: 0.0.0.0/0
55           direction: egress
56         - protocol: tcp
57           ethertype: IPv6
58           port_range_max: 65535
59           remote_ip_prefix: ::/0
60           direction: egress
61           port_range_min: 1
62         - protocol: udp
63           ethertype: IPv6
64           port_range_max: 65535
65           remote_ip_prefix: ::/0
66           direction: egress
67           port_range_min: 1
68         - protocol: icmp
69           ethertype: IPv6
70           remote_ip_prefix: ::/0
71           direction: egress
72         - protocol: tcp
73           ethertype: IPv4
74           port_range_max: 65535
75           remote_ip_prefix: 0.0.0.0/0
76           direction: ingress
77           port_range_min: 1
78         - protocol: udp
79           ethertype: IPv4
80           port_range_max: 65535
81           remote_ip_prefix: 0.0.0.0/0
82           direction: ingress
83           port_range_min: 1
84         - protocol: icmp
85           ethertype: IPv4
86           remote_ip_prefix: 0.0.0.0/0
87           direction: ingress
88         - protocol: tcp
89           ethertype: IPv6
90           port_range_max: 65535
91           remote_ip_prefix: ::/0
92           direction: ingress
93           port_range_min: 1
94         - protocol: udp
95           ethertype: IPv6
96           port_range_max: 65535
97           remote_ip_prefix: ::/0
98           direction: ingress
99           port_range_min: 1
100         - protocol: icmp
101           ethertype: IPv6
102           remote_ip_prefix: ::/0
103           direction: ingress
104       requirements:
105       - port:
106           capability: attachment_cmaui_port_2
107           node: test_nested
108           relationship: org.openecomp.relationships.AttachesTo
109       - port:
110           capability: attachment_cmaui_port_22_test_nested2
111           node: test_nested
112           relationship: org.openecomp.relationships.AttachesTo
113       - port:
114           capability: attachment_cmaui_port_1
115           node: test_nested
116           relationship: org.openecomp.relationships.AttachesTo
117       - port:
118           capability: attachment_cmaui_port_11_test_nested3_test_nested2
119           node: test_nested
120           relationship: org.openecomp.relationships.AttachesTo
121       - port:
122           capability: attachment_cmaui_port_22_test_nested3_test_nested2
123           node: test_nested
124           relationship: org.openecomp.relationships.AttachesTo
125       - port:
126           capability: attachment_cmaui_port_11_test_nested2
127           node: test_nested
128           relationship: org.openecomp.relationships.AttachesTo
129     jsa_security_group2:
130       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
131       properties:
132         name:
133           get_input: security_group_name
134         description: ems security group
135         rules:
136         - protocol: tcp
137           ethertype: IPv4
138           port_range_max: 65535
139           remote_ip_prefix: 0.0.0.0/0
140           direction: egress
141           port_range_min: 1
142         - protocol: udp
143           ethertype: IPv4
144           port_range_max: 65535
145           remote_ip_prefix: 0.0.0.0/0
146           direction: egress
147           port_range_min: 1
148         - protocol: icmp
149           ethertype: IPv4
150           remote_ip_prefix: 0.0.0.0/0
151           direction: egress
152         - protocol: tcp
153           ethertype: IPv6
154           port_range_max: 65535
155           remote_ip_prefix: ::/0
156           direction: egress
157           port_range_min: 1
158         - protocol: udp
159           ethertype: IPv6
160           port_range_max: 65535
161           remote_ip_prefix: ::/0
162           direction: egress
163           port_range_min: 1
164         - protocol: icmp
165           ethertype: IPv6
166           remote_ip_prefix: ::/0
167           direction: egress
168         - protocol: tcp
169           ethertype: IPv4
170           port_range_max: 65535
171           remote_ip_prefix: 0.0.0.0/0
172           direction: ingress
173           port_range_min: 1
174         - protocol: udp
175           ethertype: IPv4
176           port_range_max: 65535
177           remote_ip_prefix: 0.0.0.0/0
178           direction: ingress
179           port_range_min: 1
180         - protocol: icmp
181           ethertype: IPv4
182           remote_ip_prefix: 0.0.0.0/0
183           direction: ingress
184         - protocol: tcp
185           ethertype: IPv6
186           port_range_max: 65535
187           remote_ip_prefix: ::/0
188           direction: ingress
189           port_range_min: 1
190         - protocol: udp
191           ethertype: IPv6
192           port_range_max: 65535
193           remote_ip_prefix: ::/0
194           direction: ingress
195           port_range_min: 1
196         - protocol: icmp
197           ethertype: IPv6
198           remote_ip_prefix: ::/0
199           direction: ingress
200       requirements:
201       - port:
202           capability: attachment_cmaui_port_1
203           node: test_nested
204           relationship: org.openecomp.relationships.AttachesTo
205       - port:
206           capability: attachment_cmaui_port_11_test_nested3_test_nested2
207           node: test_nested
208           relationship: org.openecomp.relationships.AttachesTo
209       - port:
210           capability: attachment_cmaui_port_11_test_nested2
211           node: test_nested
212           relationship: org.openecomp.relationships.AttachesTo
213     test_nested:
214       type: org.openecomp.resource.abstract.nodes.heat.nested
215       directives:
216       - substitutable
217       properties:
218         service_template_filter:
219           substitute_service_template: nestedServiceTemplate.yaml
220         p2:
221           get_input: shared_security_group_id2
222         shared_security_group_id1:
223           get_input: shared_security_group_id1
224   groups:
225     base_group:
226       type: org.openecomp.groups.heat.HeatStack
227       properties:
228         heat_file: ../Artifacts/base.yml
229         description: |
230           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
231       members:
232       - jsa_security_group1
233       - jsa_security_group2
234     addOn_group:
235       type: org.openecomp.groups.heat.HeatStack
236       properties:
237         heat_file: ../Artifacts/addOn.yml
238         description: |
239           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
240       members:
241       - test_nested