[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 / securityrulestoportnestedconnection / 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     jsa_net_name:
18       hidden: false
19       immutable: false
20       type: string
21       description: network name of jsa log network
22   node_templates:
23     jsa_security_group1:
24       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
25       properties:
26         name:
27           get_input: security_group_name
28         description: ems security group
29         rules:
30         - protocol: tcp
31           ethertype: IPv4
32           port_range_max: 65535
33           remote_ip_prefix: 0.0.0.0/0
34           direction: egress
35           port_range_min: 1
36         - protocol: udp
37           ethertype: IPv4
38           port_range_max: 65535
39           remote_ip_prefix: 0.0.0.0/0
40           direction: egress
41           port_range_min: 1
42         - protocol: icmp
43           ethertype: IPv4
44           remote_ip_prefix: 0.0.0.0/0
45           direction: egress
46         - protocol: tcp
47           ethertype: IPv6
48           port_range_max: 65535
49           remote_ip_prefix: ::/0
50           direction: egress
51           port_range_min: 1
52         - protocol: udp
53           ethertype: IPv6
54           port_range_max: 65535
55           remote_ip_prefix: ::/0
56           direction: egress
57           port_range_min: 1
58         - protocol: icmp
59           ethertype: IPv6
60           remote_ip_prefix: ::/0
61           direction: egress
62         - protocol: tcp
63           ethertype: IPv4
64           port_range_max: 65535
65           remote_ip_prefix: 0.0.0.0/0
66           direction: ingress
67           port_range_min: 1
68         - protocol: udp
69           ethertype: IPv4
70           port_range_max: 65535
71           remote_ip_prefix: 0.0.0.0/0
72           direction: ingress
73           port_range_min: 1
74         - protocol: icmp
75           ethertype: IPv4
76           remote_ip_prefix: 0.0.0.0/0
77           direction: ingress
78         - protocol: tcp
79           ethertype: IPv6
80           port_range_max: 65535
81           remote_ip_prefix: ::/0
82           direction: ingress
83           port_range_min: 1
84         - protocol: udp
85           ethertype: IPv6
86           port_range_max: 65535
87           remote_ip_prefix: ::/0
88           direction: ingress
89           port_range_min: 1
90         - protocol: icmp
91           ethertype: IPv6
92           remote_ip_prefix: ::/0
93           direction: ingress
94       requirements:
95       - port:
96           capability: attachment_cmaui_port_0
97           node: test_nested
98           relationship: org.openecomp.relationships.AttachesTo
99       - port:
100           capability: attachment_cmaui_port_1
101           node: test_nested
102           relationship: org.openecomp.relationships.AttachesTo
103     jsa_security_group2:
104       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
105       properties:
106         name:
107           get_input: security_group_name
108         description: ems security group
109         rules:
110         - protocol: tcp
111           ethertype: IPv4
112           port_range_max: 65535
113           remote_ip_prefix: 0.0.0.0/0
114           direction: egress
115           port_range_min: 1
116         - protocol: udp
117           ethertype: IPv4
118           port_range_max: 65535
119           remote_ip_prefix: 0.0.0.0/0
120           direction: egress
121           port_range_min: 1
122         - protocol: icmp
123           ethertype: IPv4
124           remote_ip_prefix: 0.0.0.0/0
125           direction: egress
126         - protocol: tcp
127           ethertype: IPv6
128           port_range_max: 65535
129           remote_ip_prefix: ::/0
130           direction: egress
131           port_range_min: 1
132         - protocol: udp
133           ethertype: IPv6
134           port_range_max: 65535
135           remote_ip_prefix: ::/0
136           direction: egress
137           port_range_min: 1
138         - protocol: icmp
139           ethertype: IPv6
140           remote_ip_prefix: ::/0
141           direction: egress
142         - protocol: tcp
143           ethertype: IPv4
144           port_range_max: 65535
145           remote_ip_prefix: 0.0.0.0/0
146           direction: ingress
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: ingress
153           port_range_min: 1
154         - protocol: icmp
155           ethertype: IPv4
156           remote_ip_prefix: 0.0.0.0/0
157           direction: ingress
158         - protocol: tcp
159           ethertype: IPv6
160           port_range_max: 65535
161           remote_ip_prefix: ::/0
162           direction: ingress
163           port_range_min: 1
164         - protocol: udp
165           ethertype: IPv6
166           port_range_max: 65535
167           remote_ip_prefix: ::/0
168           direction: ingress
169           port_range_min: 1
170         - protocol: icmp
171           ethertype: IPv6
172           remote_ip_prefix: ::/0
173           direction: ingress
174       requirements:
175       - port:
176           capability: attachment_cmaui_port_0
177           node: test_nested
178           relationship: org.openecomp.relationships.AttachesTo
179     test_nested:
180       type: org.openecomp.resource.abstract.nodes.heat.nested
181       directives:
182       - substitutable
183       properties:
184         p1: jsa_security_group1
185         service_template_filter:
186           substitute_service_template: nestedServiceTemplate.yaml
187         p2: jsa_security_group2
188   groups:
189     main_group:
190       type: org.openecomp.groups.heat.HeatStack
191       properties:
192         heat_file: ../Artifacts/main.yml
193         description: |
194           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
195       members:
196       - jsa_security_group1
197       - jsa_security_group2
198       - test_nested