[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 / ContrailV2_translation / ContrailV2_MultiPolicy_single_net_translation / 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 topology_template:
8   inputs:
9     left_vn_fqdn:
10       hidden: false
11       immutable: false
12       type: string
13       description: dummy
14     Internal1_cidr:
15       hidden: false
16       immutable: false
17       type: string
18     src_port_start:
19       hidden: false
20       immutable: false
21       type: string
22       description: dummy
23     Internal1_default_gateway:
24       hidden: false
25       immutable: false
26       type: string
27     Internal1_dhcp:
28       hidden: false
29       immutable: false
30       type: string
31     src_port_end:
32       hidden: false
33       immutable: false
34       type: string
35       description: dummy
36     policy_name:
37       hidden: false
38       immutable: false
39       type: string
40       description: dummy
41     dst_port_end:
42       hidden: false
43       immutable: false
44       type: string
45       description: dummy
46     simple_action:
47       hidden: false
48       immutable: false
49       type: string
50       description: dummy
51     service_instance_fq_name:
52       hidden: false
53       immutable: false
54       type: string
55     Internal2_cidr:
56       hidden: false
57       immutable: false
58       type: string
59     protocol:
60       hidden: false
61       immutable: false
62       type: string
63       description: dummy
64     Internal2_dhcp:
65       hidden: false
66       immutable: false
67       type: string
68     dst_port_start:
69       hidden: false
70       immutable: false
71       type: string
72       description: dummy
73     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
74       hidden: false
75       immutable: false
76       type: string
77       description: dummy
78     Internal2_default_gateway:
79       hidden: false
80       immutable: false
81       type: string
82     right_vn_fqdn:
83       hidden: false
84       immutable: false
85       type: string
86       description: dummy
87     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
88       hidden: false
89       immutable: false
90       type: string
91       description: dummy
92     left_vn:
93       hidden: false
94       immutable: false
95       type: string
96       description: dummy
97     direction:
98       hidden: false
99       immutable: false
100       type: string
101       description: dummy
102     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
103       hidden: false
104       immutable: false
105       type: string
106       description: dummy
107   node_templates:
108     template_VirtualNetwork_2:
109       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
110       properties:
111         dhcp_enabled:
112           get_input: Internal1_dhcp
113         network_ipam_refs_data:
114         - network_ipam_refs_data_ipam_subnets:
115           - network_ipam_refs_data_ipam_subnets_subnet:
116               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
117                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
118               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
119                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
120             network_ipam_refs_data_ipam_subnets_addr_from_start:
121               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
122         network_policy_refs_data:
123         - network_policy_refs_data_sequence:
124             network_policy_refs_data_sequence_major: 0
125             network_policy_refs_data_sequence_minor: 0
126         network_name:
127           get_input: left_vn
128         network_ipam_refs:
129         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
130         network_policy_refs:
131         - list_join:
132           - ':'
133           - get_attribute:
134             - template_NetworkPolicy_1
135             - fq_name
136         - get_attribute:
137           - template_NetworkPolicy_2
138           - fq_name
139         - template_NetworkPolicy_3
140         subnets:
141           Internal-subnet-1:
142             enable_dhcp:
143               get_input: Internal1_dhcp
144             cidr:
145               get_input: Internal1_cidr
146             gateway_ip:
147               get_input: Internal1_default_gateway
148           Internal-subnet-2:
149             enable_dhcp:
150               get_input: Internal2_dhcp
151             cidr:
152               get_input: Internal2_cidr
153             gateway_ip:
154               get_input: Internal2_default_gateway
155       requirements:
156       - dependency:
157           capability: tosca.capabilities.Node
158           node: template_NetworkPolicy_1
159           relationship: tosca.relationships.DependsOn
160     template_NetworkPolicy_1:
161       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
162       properties:
163         name:
164           get_input: policy_name
165         network_policy_entries:
166           network_policy_entries_policy_rule:
167           - network_policy_entries_policy_rule_dst_addresses:
168             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
169                 get_input: right_vn_fqdn
170             network_policy_entries_policy_rule_dst_ports:
171             - network_policy_entries_policy_rule_dst_ports_start_port:
172                 get_input: dst_port_start
173               network_policy_entries_policy_rule_dst_ports_end_port:
174                 get_input: dst_port_end
175             network_policy_entries_policy_rule_protocol:
176               get_input: protocol
177             network_policy_entries_policy_rule_src_addresses:
178             - network_policy_entries_policy_rule_src_addresses_virtual_network:
179                 get_input: left_vn_fqdn
180             network_policy_entries_policy_rule_direction:
181               get_input: direction
182             network_policy_entries_policy_rule_src_ports:
183             - network_policy_entries_policy_rule_src_ports_start_port:
184                 get_input: src_port_start
185               network_policy_entries_policy_rule_src_ports_end_port:
186                 get_input: src_port_end
187             network_policy_entries_policy_rule_action_list:
188               network_policy_entries_policy_rule_action_list_simple_action:
189                 get_input: simple_action
190               network_policy_entries_policy_rule_action_list_apply_service:
191               - get_input: service_instance_fq_name
192       requirements:
193       - network:
194           capability: tosca.capabilities.Attachment
195           node: template_VirtualNetwork_2
196           relationship: org.openecomp.relationships.AttachesTo
197     template_NetworkPolicy_3:
198       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
199       properties:
200         name:
201           get_input: policy_name
202         network_policy_entries:
203           network_policy_entries_policy_rule:
204           - network_policy_entries_policy_rule_dst_addresses:
205             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
206                 get_input: right_vn_fqdn
207             network_policy_entries_policy_rule_dst_ports:
208             - network_policy_entries_policy_rule_dst_ports_start_port:
209                 get_input: dst_port_start
210               network_policy_entries_policy_rule_dst_ports_end_port:
211                 get_input: dst_port_end
212             network_policy_entries_policy_rule_protocol:
213               get_input: protocol
214             network_policy_entries_policy_rule_src_addresses:
215             - network_policy_entries_policy_rule_src_addresses_virtual_network:
216                 get_input: left_vn_fqdn
217             network_policy_entries_policy_rule_direction:
218               get_input: direction
219             network_policy_entries_policy_rule_src_ports:
220             - network_policy_entries_policy_rule_src_ports_start_port:
221                 get_input: src_port_start
222               network_policy_entries_policy_rule_src_ports_end_port:
223                 get_input: src_port_end
224             network_policy_entries_policy_rule_action_list:
225               network_policy_entries_policy_rule_action_list_simple_action:
226                 get_input: simple_action
227               network_policy_entries_policy_rule_action_list_apply_service:
228               - get_input: service_instance_fq_name
229       requirements:
230       - network:
231           capability: tosca.capabilities.Attachment
232           node: template_VirtualNetwork_2
233           relationship: org.openecomp.relationships.AttachesTo
234     template_NetworkPolicy_2:
235       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
236       properties:
237         name:
238           get_input: policy_name
239         network_policy_entries:
240           network_policy_entries_policy_rule:
241           - network_policy_entries_policy_rule_dst_addresses:
242             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
243                 get_input: right_vn_fqdn
244             network_policy_entries_policy_rule_dst_ports:
245             - network_policy_entries_policy_rule_dst_ports_start_port:
246                 get_input: dst_port_start
247               network_policy_entries_policy_rule_dst_ports_end_port:
248                 get_input: dst_port_end
249             network_policy_entries_policy_rule_protocol:
250               get_input: protocol
251             network_policy_entries_policy_rule_src_addresses:
252             - network_policy_entries_policy_rule_src_addresses_virtual_network:
253                 get_input: left_vn_fqdn
254             network_policy_entries_policy_rule_direction:
255               get_input: direction
256             network_policy_entries_policy_rule_src_ports:
257             - network_policy_entries_policy_rule_src_ports_start_port:
258                 get_input: src_port_start
259               network_policy_entries_policy_rule_src_ports_end_port:
260                 get_input: src_port_end
261             network_policy_entries_policy_rule_action_list:
262               network_policy_entries_policy_rule_action_list_simple_action:
263                 get_input: simple_action
264               network_policy_entries_policy_rule_action_list_apply_service:
265               - get_input: service_instance_fq_name
266       requirements:
267       - network:
268           capability: tosca.capabilities.Attachment
269           node: template_VirtualNetwork_2
270           relationship: org.openecomp.relationships.AttachesTo
271   groups:
272     main_group:
273       type: org.openecomp.groups.heat.HeatStack
274       properties:
275         heat_file: ../Artifacts/main.yml
276         description: cmaui server template for vMMSC
277       members:
278       - template_VirtualNetwork_2
279       - template_NetworkPolicy_1
280       - template_NetworkPolicy_3
281       - template_NetworkPolicy_2