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