[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_Multi_net_single_policy_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_NetworkPolicy:
109       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
110       properties:
111         name:
112           get_input: policy_name
113         network_policy_entries:
114           network_policy_entries_policy_rule:
115           - network_policy_entries_policy_rule_dst_addresses:
116             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
117                 get_input: right_vn_fqdn
118             network_policy_entries_policy_rule_dst_ports:
119             - network_policy_entries_policy_rule_dst_ports_start_port:
120                 get_input: dst_port_start
121               network_policy_entries_policy_rule_dst_ports_end_port:
122                 get_input: dst_port_end
123             network_policy_entries_policy_rule_protocol:
124               get_input: protocol
125             network_policy_entries_policy_rule_src_addresses:
126             - network_policy_entries_policy_rule_src_addresses_virtual_network:
127                 get_input: left_vn_fqdn
128             network_policy_entries_policy_rule_direction:
129               get_input: direction
130             network_policy_entries_policy_rule_src_ports:
131             - network_policy_entries_policy_rule_src_ports_start_port:
132                 get_input: src_port_start
133               network_policy_entries_policy_rule_src_ports_end_port:
134                 get_input: src_port_end
135             network_policy_entries_policy_rule_action_list:
136               network_policy_entries_policy_rule_action_list_simple_action:
137                 get_input: simple_action
138               network_policy_entries_policy_rule_action_list_apply_service:
139               - get_input: service_instance_fq_name
140       requirements:
141       - network:
142           capability: tosca.capabilities.Attachment
143           node: template_VirtualNetwork_1
144           relationship: org.openecomp.relationships.AttachesTo
145       - network:
146           capability: tosca.capabilities.Attachment
147           node: template_VirtualNetwork_2
148           relationship: org.openecomp.relationships.AttachesTo
149       - network:
150           capability: tosca.capabilities.Attachment
151           node: template_VirtualNetwork_3
152           relationship: org.openecomp.relationships.AttachesTo
153     template_VirtualNetwork_2:
154       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
155       properties:
156         dhcp_enabled:
157           get_input: Internal1_dhcp
158         network_ipam_refs_data:
159         - network_ipam_refs_data_ipam_subnets:
160           - network_ipam_refs_data_ipam_subnets_subnet:
161               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
162                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
163               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
164                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
165             network_ipam_refs_data_ipam_subnets_addr_from_start:
166               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
167         network_policy_refs_data:
168         - network_policy_refs_data_sequence:
169             network_policy_refs_data_sequence_major: 0
170             network_policy_refs_data_sequence_minor: 0
171         network_name:
172           get_input: left_vn
173         network_ipam_refs:
174         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
175         network_policy_refs:
176         - get_attribute:
177           - template_NetworkPolicy
178           - fq_name
179         subnets:
180           Internal-subnet-1:
181             enable_dhcp:
182               get_input: Internal1_dhcp
183             cidr:
184               get_input: Internal1_cidr
185             gateway_ip:
186               get_input: Internal1_default_gateway
187           Internal-subnet-2:
188             enable_dhcp:
189               get_input: Internal2_dhcp
190             cidr:
191               get_input: Internal2_cidr
192             gateway_ip:
193               get_input: Internal2_default_gateway
194       requirements:
195       - dependency:
196           capability: tosca.capabilities.Node
197           node: template_NetworkPolicy
198           relationship: tosca.relationships.DependsOn
199     template_VirtualNetwork_1:
200       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
201       properties:
202         network_ipam_refs_data:
203         - network_ipam_refs_data_ipam_subnets:
204           - network_ipam_refs_data_ipam_subnets_subnet:
205               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
206                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
207               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
208                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
209             network_ipam_refs_data_ipam_subnets_addr_from_start:
210               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
211         network_policy_refs_data:
212         - network_policy_refs_data_sequence:
213             network_policy_refs_data_sequence_major: 0
214             network_policy_refs_data_sequence_minor: 0
215         network_name:
216           get_input: left_vn
217         network_ipam_refs:
218         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
219         network_policy_refs:
220         - list_join:
221           - ':'
222           - get_attribute:
223             - template_NetworkPolicy
224             - fq_name
225       requirements:
226       - dependency:
227           capability: tosca.capabilities.Node
228           node: template_NetworkPolicy
229           relationship: tosca.relationships.DependsOn
230     template_VirtualNetwork_3:
231       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
232       properties:
233         network_ipam_refs_data:
234         - network_ipam_refs_data_ipam_subnets:
235           - network_ipam_refs_data_ipam_subnets_subnet:
236               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
237                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
238               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
239                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
240             network_ipam_refs_data_ipam_subnets_addr_from_start:
241               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
242         network_policy_refs_data:
243         - network_policy_refs_data_sequence:
244             network_policy_refs_data_sequence_major: 0
245             network_policy_refs_data_sequence_minor: 0
246         network_name:
247           get_input: left_vn
248         network_ipam_refs:
249         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
250         network_policy_refs:
251         - template_NetworkPolicy
252       requirements:
253       - dependency:
254           capability: tosca.capabilities.Node
255           node: template_NetworkPolicy
256           relationship: tosca.relationships.DependsOn
257   groups:
258     main_group:
259       type: org.openecomp.groups.heat.HeatStack
260       properties:
261         heat_file: ../Artifacts/main.yml
262         description: cmaui server template for vMMSC
263       members:
264       - template_NetworkPolicy
265       - template_VirtualNetwork_2
266       - template_VirtualNetwork_1
267       - template_VirtualNetwork_3