[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 / 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_abc_port_1:
60           capability: tosca.capabilities.network.Linkable
61           node: test_net2
62           relationship: tosca.relationships.network.LinksTo
63       - link_template_VMInt_OAM_lb_1:
64           capability: tosca.capabilities.network.Linkable
65           node: test_net1
66           relationship: tosca.relationships.network.LinksTo
67       - link_template_VMInt_OAM_lb_2:
68           capability: tosca.capabilities.network.Linkable
69           node: test_net2
70           relationship: tosca.relationships.network.LinksTo
71       - link_template_VMInt_OAM_lb_3:
72           capability: tosca.capabilities.network.Linkable
73           node: test_net2
74           relationship: tosca.relationships.network.LinksTo
75     test_net1:
76       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
77       properties:
78         shared: true
79         network_name:
80           get_input: jsa_net_name
81     test_nested1:
82       type: org.openecomp.resource.abstract.nodes.heat.nested1
83       directives:
84       - substitutable
85       properties:
86         service_template_filter:
87           substitute_service_template: nested1ServiceTemplate.yaml
88         shared_network_id1:
89           get_input: shared_network_id1
90         p2:
91           get_input: shared_network_id2
92       requirements:
93       - link_abc_port_1:
94           capability: tosca.capabilities.network.Linkable
95           node: test_net2
96           relationship: tosca.relationships.network.LinksTo
97       - link_template_VMInt_OAM_lb_1:
98           capability: tosca.capabilities.network.Linkable
99           node: test_net1
100           relationship: tosca.relationships.network.LinksTo
101       - link_template_VMInt_OAM_lb_2:
102           capability: tosca.capabilities.network.Linkable
103           node: test_net2
104           relationship: tosca.relationships.network.LinksTo
105       - link_template_VMInt_OAM_lb_3:
106           capability: tosca.capabilities.network.Linkable
107           node: test_net2
108           relationship: tosca.relationships.network.LinksTo
109   groups:
110     main_group:
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     addOn_group:
120       type: org.openecomp.groups.heat.HeatStack
121       properties:
122         heat_file: ../Artifacts/addOn.yml
123         description: |
124           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
125       members:
126       - test_nested2
127       - test_nested3
128       - test_nested1