[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 / porttosharednetresourcegrouplinking / 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     mvs_modules:
28       type: org.openecomp.resource.abstract.nodes.heat.nested1
29       directives:
30       - substitutable
31       properties:
32         p1:
33           get_input: shared_network_id1
34         service_template_filter:
35           substitute_service_template: nested1ServiceTemplate.yaml
36           count: 3
37           mandatory: true
38         p2:
39           get_input: shared_network_id2
40       requirements:
41       - link_cmaui_port_2:
42           capability: tosca.capabilities.network.Linkable
43           node: test_net2
44           relationship: tosca.relationships.network.LinksTo
45       - link_abc_port_1:
46           capability: tosca.capabilities.network.Linkable
47           node: test_net2
48           relationship: tosca.relationships.network.LinksTo
49       - link_cmaui_port_1:
50           capability: tosca.capabilities.network.Linkable
51           node: test_net1
52           relationship: tosca.relationships.network.LinksTo
53     test_net2:
54       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
55       properties:
56         shared: true
57         network_name:
58           get_input: jsa_net_name
59     test_net1:
60       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
61       properties:
62         shared: true
63         network_name:
64           get_input: jsa_net_name
65     test_nested1:
66       type: org.openecomp.resource.abstract.nodes.heat.nested1
67       directives:
68       - substitutable
69       properties:
70         p1:
71           get_input: shared_network_id1
72         service_template_filter:
73           substitute_service_template: nested1ServiceTemplate.yaml
74         p2:
75           get_input: shared_network_id2
76       requirements:
77       - link_cmaui_port_2:
78           capability: tosca.capabilities.network.Linkable
79           node: test_net2
80           relationship: tosca.relationships.network.LinksTo
81       - link_abc_port_1:
82           capability: tosca.capabilities.network.Linkable
83           node: test_net2
84           relationship: tosca.relationships.network.LinksTo
85       - link_cmaui_port_1:
86           capability: tosca.capabilities.network.Linkable
87           node: test_net1
88           relationship: tosca.relationships.network.LinksTo
89   groups:
90     main_group:
91       type: org.openecomp.groups.heat.HeatStack
92       properties:
93         heat_file: ../Artifacts/main.yml
94         description: |
95           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
96       members:
97       - test_net2
98       - test_net1
99     addOn_group:
100       type: org.openecomp.groups.heat.HeatStack
101       properties:
102         heat_file: ../Artifacts/addOn.yml
103         description: |
104           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
105       members:
106       - mvs_modules
107       - test_nested1