[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 / shared / 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     shared_network_id1:
12       hidden: false
13       immutable: false
14       type: string
15       description: network name of jsa log network
16     shared_network_id2:
17       hidden: false
18       immutable: false
19       type: string
20       description: network name of jsa log network
21     jsa_net_name:
22       hidden: false
23       immutable: false
24       type: string
25       description: network name of jsa log network
26   node_templates:
27     test_net2:
28       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
29       properties:
30         shared: true
31         network_name:
32           get_input: jsa_net_name
33     test_nested2:
34       type: org.openecomp.resource.abstract.nodes.heat.nested2
35       directives:
36       - substitutable
37       properties:
38         p1:
39           get_input: shared_network_id1
40         service_template_filter:
41           substitute_service_template: nested2ServiceTemplate.yaml
42       requirements:
43       - link_cmaui_port_1:
44           capability: tosca.capabilities.network.Linkable
45           node: test_net1
46           relationship: tosca.relationships.network.LinksTo
47     test_nested3:
48       type: org.openecomp.resource.abstract.nodes.heat.nested1
49       directives:
50       - substitutable
51       properties:
52         service_template_filter:
53           substitute_service_template: nested1ServiceTemplate.yaml
54         shared_network_id1:
55           get_input: shared_network_id1
56         p2:
57           get_input: shared_network_id2
58       requirements:
59       - link_cmaui_port_2:
60           capability: tosca.capabilities.network.Linkable
61           node: test_net2
62           relationship: tosca.relationships.network.LinksTo
63       - link_abc_port_1:
64           capability: tosca.capabilities.network.Linkable
65           node: test_net2
66           relationship: tosca.relationships.network.LinksTo
67       - link_cmaui_port_1:
68           capability: tosca.capabilities.network.Linkable
69           node: test_net1
70           relationship: tosca.relationships.network.LinksTo
71     test_net1:
72       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
73       properties:
74         shared: true
75         network_name:
76           get_input: jsa_net_name
77     test_nested1:
78       type: org.openecomp.resource.abstract.nodes.heat.nested1
79       directives:
80       - substitutable
81       properties:
82         service_template_filter:
83           substitute_service_template: nested1ServiceTemplate.yaml
84         shared_network_id1:
85           get_input: shared_network_id1
86         p2:
87           get_input: shared_network_id2
88       requirements:
89       - link_cmaui_port_2:
90           capability: tosca.capabilities.network.Linkable
91           node: test_net2
92           relationship: tosca.relationships.network.LinksTo
93       - link_abc_port_1:
94           capability: tosca.capabilities.network.Linkable
95           node: test_net2
96           relationship: tosca.relationships.network.LinksTo
97       - link_cmaui_port_1:
98           capability: tosca.capabilities.network.Linkable
99           node: test_net1
100           relationship: tosca.relationships.network.LinksTo
101   groups:
102     main_group:
103       type: org.openecomp.groups.heat.HeatStack
104       properties:
105         heat_file: ../Artifacts/main.yml
106         description: |
107           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
108       members:
109       - test_net2
110       - test_net1
111     addOn_group:
112       type: org.openecomp.groups.heat.HeatStack
113       properties:
114         heat_file: ../Artifacts/addOn.yml
115         description: |
116           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
117       members:
118       - test_nested2
119       - test_nested3
120       - test_nested1