[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 / porttocontrailv2virtualnetworkconnection / nested / 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     left_vn_fqdn:
12       hidden: false
13       immutable: false
14       type: string
15       description: dummy
16     Internal1_cidr:
17       hidden: false
18       immutable: false
19       type: string
20     src_port_start:
21       hidden: false
22       immutable: false
23       type: string
24       description: dummy
25     Internal1_default_gateway:
26       hidden: false
27       immutable: false
28       type: string
29     Internal1_dhcp:
30       hidden: false
31       immutable: false
32       type: string
33     src_port_end:
34       hidden: false
35       immutable: false
36       type: string
37       description: dummy
38     policy_name:
39       hidden: false
40       immutable: false
41       type: string
42       description: dummy
43     dst_port_end:
44       hidden: false
45       immutable: false
46       type: string
47       description: dummy
48     simple_action:
49       hidden: false
50       immutable: false
51       type: string
52       description: dummy
53     service_instance_fq_name:
54       hidden: false
55       immutable: false
56       type: string
57     Internal2_cidr:
58       hidden: false
59       immutable: false
60       type: string
61     protocol:
62       hidden: false
63       immutable: false
64       type: string
65       description: dummy
66     Internal2_dhcp:
67       hidden: false
68       immutable: false
69       type: string
70     dst_port_start:
71       hidden: false
72       immutable: false
73       type: string
74       description: dummy
75     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
76       hidden: false
77       immutable: false
78       type: string
79       description: dummy
80     Internal2_default_gateway:
81       hidden: false
82       immutable: false
83       type: string
84     right_vn_fqdn:
85       hidden: false
86       immutable: false
87       type: string
88       description: dummy
89     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
90       hidden: false
91       immutable: false
92       type: string
93       description: dummy
94     left_vn:
95       hidden: false
96       immutable: false
97       type: string
98       description: dummy
99     direction:
100       hidden: false
101       immutable: false
102       type: string
103       description: dummy
104     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
105       hidden: false
106       immutable: false
107       type: string
108       description: dummy
109   node_templates:
110     template_NetworkPolicy:
111       type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrailV2.NetworkRules
112       properties:
113         name:
114           get_input: policy_name
115         network_policy_entries:
116           network_policy_entries_policy_rule:
117           - network_policy_entries_policy_rule_dst_addresses:
118             - network_policy_entries_policy_rule_dst_addresses_virtual_network:
119                 get_input: right_vn_fqdn
120             network_policy_entries_policy_rule_dst_ports:
121             - network_policy_entries_policy_rule_dst_ports_start_port:
122                 get_input: dst_port_start
123               network_policy_entries_policy_rule_dst_ports_end_port:
124                 get_input: dst_port_end
125             network_policy_entries_policy_rule_protocol:
126               get_input: protocol
127             network_policy_entries_policy_rule_src_addresses:
128             - network_policy_entries_policy_rule_src_addresses_virtual_network:
129                 get_input: left_vn_fqdn
130             network_policy_entries_policy_rule_direction:
131               get_input: direction
132             network_policy_entries_policy_rule_src_ports:
133             - network_policy_entries_policy_rule_src_ports_start_port:
134                 get_input: src_port_start
135               network_policy_entries_policy_rule_src_ports_end_port:
136                 get_input: src_port_end
137             network_policy_entries_policy_rule_action_list:
138               network_policy_entries_policy_rule_action_list_simple_action:
139                 get_input: simple_action
140               network_policy_entries_policy_rule_action_list_apply_service:
141               - get_input: service_instance_fq_name
142       requirements:
143       - network:
144           capability: tosca.capabilities.Attachment
145           node: test_net
146           relationship: org.openecomp.relationships.AttachesTo
147     test_net:
148       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
149       properties:
150         network_ipam_refs_data:
151         - network_ipam_refs_data_ipam_subnets:
152           - network_ipam_refs_data_ipam_subnets_subnet:
153               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
154                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
155               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
156                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
157             network_ipam_refs_data_ipam_subnets_addr_from_start:
158               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
159         network_policy_refs_data:
160         - network_policy_refs_data_sequence:
161             network_policy_refs_data_sequence_major: 0
162             network_policy_refs_data_sequence_minor: 0
163         network_name:
164           get_input: left_vn
165         network_ipam_refs:
166         - UNSUPPORTED_RESOURCE_template_NetworkIpam_2
167         network_policy_refs:
168         - list_join:
169           - ':'
170           - get_attribute:
171             - template_NetworkPolicy
172             - fq_name
173       requirements:
174       - dependency:
175           capability: tosca.capabilities.Node
176           node: template_NetworkPolicy
177           relationship: tosca.relationships.DependsOn
178     test_nested:
179       type: org.openecomp.resource.abstract.nodes.heat.nested
180       directives:
181       - substitutable
182       properties:
183         p1: test_net
184         service_template_filter:
185           substitute_service_template: nestedServiceTemplate.yaml
186       requirements:
187       - link_cmaui_port_0:
188           capability: tosca.capabilities.network.Linkable
189           node: test_net
190           relationship: tosca.relationships.network.LinksTo
191   groups:
192     main_group:
193       type: org.openecomp.groups.heat.HeatStack
194       properties:
195         heat_file: ../Artifacts/main.yml
196         description: |
197           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
198       members:
199       - template_NetworkPolicy
200       - test_net
201       - test_nested