[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 / nested2levels / 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     packet_mirror_network:
34       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
35       properties:
36         shared:
37           get_attribute:
38           - test_nested
39           - output_attr_1
40         network_name:
41           get_input: jsa_net_name
42       requirements:
43       - dependency:
44           capability: tosca.capabilities.Node
45           node: test_nested
46           relationship: tosca.relationships.DependsOn
47     jsa_security_group1:
48       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
49       properties:
50         name:
51           get_input: security_group_name
52         description: ems security group
53         rules:
54         - protocol: tcp
55           ethertype: IPv4
56           port_range_max: 65535
57           remote_ip_prefix: 0.0.0.0/0
58           direction: egress
59           port_range_min: 1
60         - protocol: udp
61           ethertype: IPv4
62           port_range_max: 65535
63           remote_ip_prefix: 0.0.0.0/0
64           direction: egress
65           port_range_min: 1
66         - protocol: icmp
67           ethertype: IPv4
68           remote_ip_prefix: 0.0.0.0/0
69           direction: egress
70         - protocol: tcp
71           ethertype: IPv6
72           port_range_max: 65535
73           remote_ip_prefix: ::/0
74           direction: egress
75           port_range_min: 1
76         - protocol: udp
77           ethertype: IPv6
78           port_range_max: 65535
79           remote_ip_prefix: ::/0
80           direction: egress
81           port_range_min: 1
82         - protocol: icmp
83           ethertype: IPv6
84           remote_ip_prefix: ::/0
85           direction: egress
86         - protocol: tcp
87           ethertype: IPv4
88           port_range_max: 65535
89           remote_ip_prefix: 0.0.0.0/0
90           direction: ingress
91           port_range_min: 1
92         - protocol: udp
93           ethertype: IPv4
94           port_range_max: 65535
95           remote_ip_prefix: 0.0.0.0/0
96           direction: ingress
97           port_range_min: 1
98         - protocol: icmp
99           ethertype: IPv4
100           remote_ip_prefix: 0.0.0.0/0
101           direction: ingress
102         - protocol: tcp
103           ethertype: IPv6
104           port_range_max: 65535
105           remote_ip_prefix: ::/0
106           direction: ingress
107           port_range_min: 1
108         - protocol: udp
109           ethertype: IPv6
110           port_range_max: 65535
111           remote_ip_prefix: ::/0
112           direction: ingress
113           port_range_min: 1
114         - protocol: icmp
115           ethertype: IPv6
116           remote_ip_prefix: ::/0
117           direction: ingress
118       requirements:
119       - port:
120           capability: attachment_cmaui_port_2
121           node: test_nested
122           relationship: org.openecomp.relationships.AttachesTo
123       - port:
124           capability: attachment_cmaui_port_22_test_nested2
125           node: test_nested
126           relationship: org.openecomp.relationships.AttachesTo
127       - port:
128           capability: attachment_cmaui_port_1
129           node: test_nested
130           relationship: org.openecomp.relationships.AttachesTo
131       - port:
132           capability: attachment_cmaui_port_11_test_nested2
133           node: test_nested
134           relationship: org.openecomp.relationships.AttachesTo
135     jsa_security_group2:
136       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
137       properties:
138         name:
139           get_input: security_group_name
140         description: ems security group
141         rules:
142         - protocol: tcp
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: udp
149           ethertype: IPv4
150           port_range_max: 65535
151           remote_ip_prefix: 0.0.0.0/0
152           direction: egress
153           port_range_min: 1
154         - protocol: icmp
155           ethertype: IPv4
156           remote_ip_prefix: 0.0.0.0/0
157           direction: egress
158         - protocol: tcp
159           ethertype: IPv6
160           port_range_max: 65535
161           remote_ip_prefix: ::/0
162           direction: egress
163           port_range_min: 1
164         - protocol: udp
165           ethertype: IPv6
166           port_range_max: 65535
167           remote_ip_prefix: ::/0
168           direction: egress
169           port_range_min: 1
170         - protocol: icmp
171           ethertype: IPv6
172           remote_ip_prefix: ::/0
173           direction: egress
174         - protocol: tcp
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: udp
181           ethertype: IPv4
182           port_range_max: 65535
183           remote_ip_prefix: 0.0.0.0/0
184           direction: ingress
185           port_range_min: 1
186         - protocol: icmp
187           ethertype: IPv4
188           remote_ip_prefix: 0.0.0.0/0
189           direction: ingress
190         - protocol: tcp
191           ethertype: IPv6
192           port_range_max: 65535
193           remote_ip_prefix: ::/0
194           direction: ingress
195           port_range_min: 1
196         - protocol: udp
197           ethertype: IPv6
198           port_range_max: 65535
199           remote_ip_prefix: ::/0
200           direction: ingress
201           port_range_min: 1
202         - protocol: icmp
203           ethertype: IPv6
204           remote_ip_prefix: ::/0
205           direction: ingress
206       requirements:
207       - port:
208           capability: attachment_cmaui_port_1
209           node: test_nested
210           relationship: org.openecomp.relationships.AttachesTo
211       - port:
212           capability: attachment_cmaui_port_11_test_nested2
213           node: test_nested
214           relationship: org.openecomp.relationships.AttachesTo
215     test_nested:
216       type: org.openecomp.resource.abstract.nodes.heat.nested
217       directives:
218       - substitutable
219       properties:
220         service_template_filter:
221           substitute_service_template: nestedServiceTemplate.yaml
222         p2:
223           get_input: shared_security_group_id2
224         shared_security_group_id1:
225           get_input: shared_security_group_id1
226   groups:
227     base_group:
228       type: org.openecomp.groups.heat.HeatStack
229       properties:
230         heat_file: ../Artifacts/base.yml
231         description: |
232           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
233       members:
234       - jsa_security_group1
235       - jsa_security_group2
236     addOn_group:
237       type: org.openecomp.groups.heat.HeatStack
238       properties:
239         heat_file: ../Artifacts/addOn.yml
240         description: |
241           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
242       members:
243       - packet_mirror_network
244       - test_nested