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