[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 / VMInterfaceToNettworkConnection / sharedNestedMultiLevels / 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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.jsa:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     shared_test_nova:
15       hidden: false
16       immutable: false
17       type: string
18     shared_test_contrail_net:
19       hidden: false
20       immutable: false
21       type: string
22     contrail_net_name:
23       hidden: false
24       immutable: false
25       type: string
26       description: network name of jsa log network
27     shared_test_net:
28       hidden: false
29       immutable: false
30       type: string
31     shared_test_contrailV2_net:
32       hidden: false
33       immutable: false
34       type: string
35     jsa_net_name:
36       hidden: false
37       immutable: false
38       type: string
39       description: network name of jsa log network
40     jsa_name:
41       hidden: false
42       immutable: false
43       type: string
44   node_templates:
45     test_nested1Level:
46       type: org.openecomp.resource.abstract.nodes.heat.nested1
47       directives:
48       - substitutable
49       properties:
50         service_template_filter:
51           substitute_service_template: nested1ServiceTemplate.yaml
52         p2:
53           get_input: shared_test_contrailV2_net
54         shared_test_net:
55           get_input: shared_test_net
56       requirements:
57       - link_template_VMInt_OAM_lb_1:
58           capability: tosca.capabilities.network.Linkable
59           node: test_net
60           relationship: tosca.relationships.network.LinksTo
61       - link_template_VMInt_OAM_lb_2:
62           capability: tosca.capabilities.network.Linkable
63           node: test_contrailV2_net
64           relationship: tosca.relationships.network.LinksTo
65       - link_template_VMInt_OAM_lb_5_test_nested3Level_test_nested2Level:
66           capability: tosca.capabilities.network.Linkable
67           node: test_net
68           relationship: tosca.relationships.network.LinksTo
69       - link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level_test_nested2Level:
70           capability: tosca.capabilities.network.Linkable
71           node: test_net
72           relationship: tosca.relationships.network.LinksTo
73       - link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level_test_nested2Level:
74           capability: tosca.capabilities.network.Linkable
75           node: test_net
76           relationship: tosca.relationships.network.LinksTo
77       - link_template_VMInt_OAM_lb_6_test_nested3Level_test_nested2Level:
78           capability: tosca.capabilities.network.Linkable
79           node: test_net
80           relationship: tosca.relationships.network.LinksTo
81       - link_template_VMInt_OAM_lb_3_test_nested2Level:
82           capability: tosca.capabilities.network.Linkable
83           node: test_net
84           relationship: tosca.relationships.network.LinksTo
85       - link_template_VMInt_OAM_lb_4_test_nested2Level:
86           capability: tosca.capabilities.network.Linkable
87           node: test_contrailV2_net
88           relationship: tosca.relationships.network.LinksTo
89     test_resourceGroup:
90       type: org.openecomp.resource.abstract.nodes.heat.nested3
91       directives:
92       - substitutable
93       properties:
94         service_template_filter:
95           substitute_service_template: nested3ServiceTemplate.yaml
96           count: 9
97           mandatory: true
98         indx:
99           get_property:
100           - SELF
101           - service_template_filter
102           - index_value
103         shared_test_net:
104           get_input: shared_test_contrailV2_net
105       requirements:
106       - link_template_VMInt_OAM_lb_8_test_nested4Level:
107           capability: tosca.capabilities.network.Linkable
108           node: test_contrailV2_net
109           relationship: tosca.relationships.network.LinksTo
110       - link_template_VMInt_OAM_lb_6:
111           capability: tosca.capabilities.network.Linkable
112           node: test_contrailV2_net
113           relationship: tosca.relationships.network.LinksTo
114     test_contrailV2_net:
115       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
116       properties:
117         network_name:
118           get_input: contrail_net_name
119     test_nestedInvalidConnectionToNetwork2:
120       type: org.openecomp.resource.abstract.nodes.heat.nested1
121       directives:
122       - substitutable
123       properties:
124         service_template_filter:
125           substitute_service_template: nested1ServiceTemplate.yaml
126         shared_test_net:
127           get_input: shared_test_contrail_net
128     test_net:
129       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
130       properties:
131         shared: true
132         network_name:
133           get_input: jsa_net_name
134     test_nestedInvalidConnectionToNetwork1:
135       type: org.openecomp.resource.abstract.nodes.heat.nested1
136       directives:
137       - substitutable
138       properties:
139         service_template_filter:
140           substitute_service_template: nested1ServiceTemplate.yaml
141         shared_test_net:
142           get_input: shared_test_nova
143     test_contrail_net:
144       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
145       properties:
146         network_name:
147           get_input: contrail_net_name
148     test_nova:
149       type: org.openecomp.resource.vfc.nodes.heat.jsa
150       properties:
151         image: image
152         name:
153           get_input: jsa_name
154   groups:
155     base_group:
156       type: org.openecomp.groups.heat.HeatStack
157       properties:
158         heat_file: ../Artifacts/base.yml
159         description: |
160           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
161       members:
162       - test_contrailV2_net
163       - test_net
164       - test_contrail_net
165       - test_nova
166     addOn_group:
167       type: org.openecomp.groups.heat.HeatStack
168       properties:
169         heat_file: ../Artifacts/addOn.yml
170         description: |
171           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
172       members:
173       - test_nested1Level
174       - test_resourceGroup
175       - test_nestedInvalidConnectionToNetwork2
176       - test_nestedInvalidConnectionToNetwork1