push addional code
[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   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.jsa:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     shared_test_nova:
39       hidden: false
40       immutable: false
41       type: string
42     shared_network_id1:
43       hidden: false
44       immutable: false
45       type: string
46       description: network name of jsa log network
47     shared_network_id2:
48       hidden: false
49       immutable: false
50       type: string
51       description: network name of jsa log network
52     jsa_net_name:
53       hidden: false
54       immutable: false
55       type: string
56       description: network name of jsa log network
57     jsa_name:
58       hidden: false
59       immutable: false
60       type: string
61   node_templates:
62     test_nestedInvalidConnectionToNetwork:
63       type: org.openecomp.resource.abstract.nodes.heat.nested1
64       directives:
65       - substitutable
66       properties:
67         service_template_filter:
68           substitute_service_template: nested1ServiceTemplate.yaml
69         shared_network_id1:
70           get_input: shared_test_nova
71     test_net2:
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_nested2:
78       type: org.openecomp.resource.abstract.nodes.heat.nested2
79       directives:
80       - substitutable
81       properties:
82         p1:
83           get_input: shared_network_id1
84         service_template_filter:
85           substitute_service_template: nested2ServiceTemplate.yaml
86       requirements:
87       - link_cmaui_port_1:
88           capability: tosca.capabilities.network.Linkable
89           node: test_net1
90           relationship: tosca.relationships.network.LinksTo
91     test_nested3:
92       type: org.openecomp.resource.abstract.nodes.heat.nested1
93       directives:
94       - substitutable
95       properties:
96         service_template_filter:
97           substitute_service_template: nested1ServiceTemplate.yaml
98         shared_network_id1:
99           get_input: shared_network_id1
100         p2:
101           get_input: shared_network_id2
102       requirements:
103       - link_cmaui_port_2:
104           capability: tosca.capabilities.network.Linkable
105           node: test_net2
106           relationship: tosca.relationships.network.LinksTo
107       - link_abc_port_1:
108           capability: tosca.capabilities.network.Linkable
109           node: test_net2
110           relationship: tosca.relationships.network.LinksTo
111       - link_cmaui_port_1:
112           capability: tosca.capabilities.network.Linkable
113           node: test_net1
114           relationship: tosca.relationships.network.LinksTo
115     test_net1:
116       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
117       properties:
118         shared: true
119         network_name:
120           get_input: jsa_net_name
121     test_nested1:
122       type: org.openecomp.resource.abstract.nodes.heat.nested1
123       directives:
124       - substitutable
125       properties:
126         service_template_filter:
127           substitute_service_template: nested1ServiceTemplate.yaml
128         shared_network_id1:
129           get_input: shared_network_id1
130         p2:
131           get_input: shared_network_id2
132       requirements:
133       - link_cmaui_port_2:
134           capability: tosca.capabilities.network.Linkable
135           node: test_net2
136           relationship: tosca.relationships.network.LinksTo
137       - link_abc_port_1:
138           capability: tosca.capabilities.network.Linkable
139           node: test_net2
140           relationship: tosca.relationships.network.LinksTo
141       - link_cmaui_port_1:
142           capability: tosca.capabilities.network.Linkable
143           node: test_net1
144           relationship: tosca.relationships.network.LinksTo
145     test_nova:
146       type: org.openecomp.resource.vfc.nodes.heat.jsa
147       properties:
148         image: image
149         name:
150           get_input: jsa_name
151   groups:
152     addOn:
153       type: org.openecomp.groups.heat.HeatStack
154       properties:
155         heat_file: ../Artifacts/addOn.yml
156         description: |
157           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
158       members:
159       - test_nestedInvalidConnectionToNetwork
160       - test_nested2
161       - test_nested3
162       - test_nested1
163     main:
164       type: org.openecomp.groups.heat.HeatStack
165       properties:
166         heat_file: ../Artifacts/main.yml
167         description: |
168           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
169       members:
170       - test_net2
171       - test_net1
172       - test_nova