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