[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 / securityruletosharedportlinking / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - ContrailV2VLANSubInterfaceGlobalType:
6     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
7 - NeutronPortGlobalTypes:
8     file: NeutronPortGlobalTypesServiceTemplate.yaml
9 - NeutronNetGlobalTypes:
10     file: NeutronNetGlobalTypesServiceTemplate.yaml
11 - CommonGlobalTypes:
12     file: CommonGlobalTypesServiceTemplate.yaml
13 - CinderVolumeGlobalTypes:
14     file: CinderVolumeGlobalTypesServiceTemplate.yaml
15 - ContrailNetworkRuleGlobalType:
16     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
17 - NeutronSecurityRulesGlobalTypes:
18     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
19 - NovaServerGlobalTypes:
20     file: NovaServerGlobalTypesServiceTemplate.yaml
21 - ContrailVirtualNetworkGlobalType:
22     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
23 - AbstractSubstituteGlobalTypes:
24     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
25 topology_template:
26   inputs:
27     security_group_name:
28       label: security group name
29       hidden: false
30       immutable: false
31       type: string
32       description: the name of security group
33     shared_security_group_id2:
34       hidden: false
35       immutable: false
36       type: string
37       description: network name of jsa log network
38     jsa_net_name:
39       hidden: false
40       immutable: false
41       type: string
42       description: network name of jsa log network
43     shared_security_group_id1:
44       hidden: false
45       immutable: false
46       type: string
47       description: network name of jsa log network
48   node_templates:
49     jsa_security_group1:
50       type: org.openecomp.resource.nodes.heat.network.neutron.SecurityRules
51       properties:
52         name:
53           get_input: security_group_name
54         description: ems security group
55         rules:
56         - protocol: tcp
57           ethertype: IPv4
58           port_range_max: 65535
59           remote_ip_prefix: 0.0.0.0/0
60           direction: egress
61           port_range_min: 1
62         - protocol: udp
63           ethertype: IPv4
64           port_range_max: 65535
65           remote_ip_prefix: 0.0.0.0/0
66           direction: egress
67           port_range_min: 1
68         - protocol: icmp
69           ethertype: IPv4
70           remote_ip_prefix: 0.0.0.0/0
71           direction: egress
72         - protocol: tcp
73           ethertype: IPv6
74           port_range_max: 65535
75           remote_ip_prefix: ::/0
76           direction: egress
77           port_range_min: 1
78         - protocol: udp
79           ethertype: IPv6
80           port_range_max: 65535
81           remote_ip_prefix: ::/0
82           direction: egress
83           port_range_min: 1
84         - protocol: icmp
85           ethertype: IPv6
86           remote_ip_prefix: ::/0
87           direction: egress
88         - protocol: tcp
89           ethertype: IPv4
90           port_range_max: 65535
91           remote_ip_prefix: 0.0.0.0/0
92           direction: ingress
93           port_range_min: 1
94         - protocol: udp
95           ethertype: IPv4
96           port_range_max: 65535
97           remote_ip_prefix: 0.0.0.0/0
98           direction: ingress
99           port_range_min: 1
100         - protocol: icmp
101           ethertype: IPv4
102           remote_ip_prefix: 0.0.0.0/0
103           direction: ingress
104         - protocol: tcp
105           ethertype: IPv6
106           port_range_max: 65535
107           remote_ip_prefix: ::/0
108           direction: ingress
109           port_range_min: 1
110         - protocol: udp
111           ethertype: IPv6
112           port_range_max: 65535
113           remote_ip_prefix: ::/0
114           direction: ingress
115           port_range_min: 1
116         - protocol: icmp
117           ethertype: IPv6
118           remote_ip_prefix: ::/0
119           direction: ingress
120       requirements:
121       - port:
122           capability: attachment_cmaui_port_2
123           node: test_nested
124           relationship: org.openecomp.relationships.AttachesTo
125       - port:
126           capability: attachment_cmaui_port_1
127           node: test_nested
128           relationship: org.openecomp.relationships.AttachesTo
129     jsa_security_group2:
130       type: org.openecomp.resource.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     test_nested:
206       type: org.openecomp.resource.abstract.nodes.heat.nested
207       directives:
208       - substitutable
209       properties:
210         service_template_filter:
211           substitute_service_template: nestedServiceTemplate.yaml
212         p2:
213           get_input: shared_security_group_id2
214         shared_security_group_id1:
215           get_input: shared_security_group_id1
216   groups:
217     addOn:
218       type: org.openecomp.groups.heat.HeatStack
219       properties:
220         heat_file: ../Artifacts/addOn.yml
221         description: |
222           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
223       members:
224       - test_nested
225     main:
226       type: org.openecomp.groups.heat.HeatStack
227       properties:
228         heat_file: ../Artifacts/main.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