[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 / porttonetconnection / nestedMultiLevels / 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     contrail_net_name:
15       hidden: false
16       immutable: false
17       type: string
18       description: network name of jsa log network
19     jsa_net_name:
20       hidden: false
21       immutable: false
22       type: string
23     jsa_name:
24       hidden: false
25       immutable: false
26       type: string
27       description: network name of jsa log network
28   node_templates:
29     test_nestedInvalidConnectionToNetwork:
30       type: org.openecomp.resource.abstract.nodes.heat.nested1
31       directives:
32       - substitutable
33       properties:
34         p1: test_nova
35         service_template_filter:
36           substitute_service_template: nested1ServiceTemplate.yaml
37     test_nested1Level:
38       type: org.openecomp.resource.abstract.nodes.heat.nested1
39       directives:
40       - substitutable
41       properties:
42         p1: test_net
43         service_template_filter:
44           substitute_service_template: nested1ServiceTemplate.yaml
45         p2:
46           get_attribute:
47           - test_contrailV2_net
48           - fq_name
49       requirements:
50       - link_cmaui_port_2_test_nested2Level:
51           capability: tosca.capabilities.network.Linkable
52           node: test_contrailV2_net
53           relationship: tosca.relationships.network.LinksTo
54       - link_cmaui_port_3_test_nested3Level_test_nested2Level:
55           capability: tosca.capabilities.network.Linkable
56           node: test_net
57           relationship: tosca.relationships.network.LinksTo
58       - link_cmaui_port_3_test_nested4Level_test_nested3Level_test_nested2Level:
59           capability: tosca.capabilities.network.Linkable
60           node: test_net
61           relationship: tosca.relationships.network.LinksTo
62       - link_cmaui_port_2_test_nested4Level_test_nested3Level_test_nested2Level:
63           capability: tosca.capabilities.network.Linkable
64           node: test_net
65           relationship: tosca.relationships.network.LinksTo
66       - link_cmaui_port_2_test_nested3Level_test_nested2Level:
67           capability: tosca.capabilities.network.Linkable
68           node: test_net
69           relationship: tosca.relationships.network.LinksTo
70       - link_cmaui_port_1_test_nested2Level:
71           capability: tosca.capabilities.network.Linkable
72           node: test_net
73           relationship: tosca.relationships.network.LinksTo
74       - link_cmaui_port_0:
75           capability: tosca.capabilities.network.Linkable
76           node: test_net
77           relationship: tosca.relationships.network.LinksTo
78     test_resourceGroup:
79       type: org.openecomp.resource.abstract.nodes.heat.nested3
80       directives:
81       - substitutable
82       properties:
83         p1:
84           list_join:
85           - ':'
86           - get_attribute:
87             - test_contrail_net
88             - fq_name
89         service_template_filter:
90           substitute_service_template: nested3ServiceTemplate.yaml
91           count: 9
92           mandatory: true
93         indx:
94           get_property:
95           - SELF
96           - service_template_filter
97           - index_value
98       requirements:
99       - link_cmaui_port_3_test_nested4Level:
100           capability: tosca.capabilities.network.Linkable
101           node: test_contrail_net
102           relationship: tosca.relationships.network.LinksTo
103       - link_cmaui_port_2:
104           capability: tosca.capabilities.network.Linkable
105           node: test_contrail_net
106           relationship: tosca.relationships.network.LinksTo
107     test_contrailV2_net:
108       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
109       properties:
110         network_name:
111           get_input: contrail_net_name
112     test_net:
113       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
114       properties:
115         shared: true
116         network_name:
117           get_input: jsa_net_name
118     test_contrail_net:
119       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
120       properties:
121         network_name:
122           get_input: contrail_net_name
123     test_nova:
124       type: org.openecomp.resource.vfc.nodes.heat.jsa
125       properties:
126         image: image
127         name:
128           get_input: jsa_name
129   groups:
130     main_group:
131       type: org.openecomp.groups.heat.HeatStack
132       properties:
133         heat_file: ../Artifacts/main.yml
134         description: |
135           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
136       members:
137       - test_nestedInvalidConnectionToNetwork
138       - test_nested1Level
139       - test_resourceGroup
140       - test_contrailV2_net
141       - test_net
142       - test_contrail_net
143       - test_nova