[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 / VlanToNetConnection / nestedMultiLevels / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.jsa:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     contrail_net_name:
45       hidden: false
46       immutable: false
47       type: string
48       description: network name of jsa log network
49     jsa_net_name:
50       hidden: false
51       immutable: false
52       type: string
53     jsa_name:
54       hidden: false
55       immutable: false
56       type: string
57       description: network name of jsa log network
58   node_templates:
59     test_nested1Level:
60       type: org.openecomp.resource.abstract.nodes.heat.nested1
61       directives:
62       - substitutable
63       properties:
64         p1: test_net
65         service_template_filter:
66           substitute_service_template: nested1ServiceTemplate.yaml
67         p2:
68           get_attribute:
69           - test_contrailV2_net
70           - fq_name
71       requirements:
72       - link_template_VMInt_OAM_lb_1:
73           capability: tosca.capabilities.network.Linkable
74           node: test_net
75           relationship: tosca.relationships.network.LinksTo
76       - link_template_VMInt_OAM_lb_2:
77           capability: tosca.capabilities.network.Linkable
78           node: test_contrailV2_net
79           relationship: tosca.relationships.network.LinksTo
80       - link_template_Vlan_1:
81           capability: tosca.capabilities.network.Linkable
82           node: test_net
83           relationship: tosca.relationships.network.LinksTo
84       - link_template_VMInt_OAM_lb_5_test_nested3Level_test_nested2Level:
85           capability: tosca.capabilities.network.Linkable
86           node: test_net
87           relationship: tosca.relationships.network.LinksTo
88       - link_template_VMInt_OAM_lb_7_test_nested4Level_test_nested3Level_test_nested2Level:
89           capability: tosca.capabilities.network.Linkable
90           node: test_net
91           relationship: tosca.relationships.network.LinksTo
92       - link_template_VMInt_OAM_lb_8_test_nested4Level_test_nested3Level_test_nested2Level:
93           capability: tosca.capabilities.network.Linkable
94           node: test_net
95           relationship: tosca.relationships.network.LinksTo
96       - link_template_Vlan_4_test_nested4Level_test_nested3Level_test_nested2Level:
97           capability: tosca.capabilities.network.Linkable
98           node: test_net
99           relationship: tosca.relationships.network.LinksTo
100       - link_template_VMInt_OAM_lb_6_test_nested3Level_test_nested2Level:
101           capability: tosca.capabilities.network.Linkable
102           node: test_net
103           relationship: tosca.relationships.network.LinksTo
104       - link_template_Vlan_3_test_nested3Level_test_nested2Level:
105           capability: tosca.capabilities.network.Linkable
106           node: test_net
107           relationship: tosca.relationships.network.LinksTo
108       - link_template_VMInt_OAM_lb_3_test_nested2Level:
109           capability: tosca.capabilities.network.Linkable
110           node: test_net
111           relationship: tosca.relationships.network.LinksTo
112       - link_template_VMInt_OAM_lb_4_test_nested2Level:
113           capability: tosca.capabilities.network.Linkable
114           node: test_contrailV2_net
115           relationship: tosca.relationships.network.LinksTo
116       - link_template_Vlan_2_test_nested2Level:
117           capability: tosca.capabilities.network.Linkable
118           node: test_contrailV2_net
119           relationship: tosca.relationships.network.LinksTo
120     test_resourceGroup:
121       type: org.openecomp.resource.abstract.nodes.heat.nested3
122       directives:
123       - substitutable
124       properties:
125         p1:
126           list_join:
127           - ':'
128           - get_attribute:
129             - test_contrailV2_net
130             - fq_name
131         service_template_filter:
132           substitute_service_template: nested3ServiceTemplate.yaml
133           count: 9
134           mandatory: true
135         indx:
136           get_property:
137           - SELF
138           - service_template_filter
139           - index_value
140       requirements:
141       - link_template_VMInt_OAM_lb_8_test_nested4Level:
142           capability: tosca.capabilities.network.Linkable
143           node: test_contrailV2_net
144           relationship: tosca.relationships.network.LinksTo
145       - link_template_Vlan_4_test_nested4Level:
146           capability: tosca.capabilities.network.Linkable
147           node: test_contrailV2_net
148           relationship: tosca.relationships.network.LinksTo
149       - link_template_VMInt_OAM_lb_6:
150           capability: tosca.capabilities.network.Linkable
151           node: test_contrailV2_net
152           relationship: tosca.relationships.network.LinksTo
153     test_contrailV2_net:
154       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
155       properties:
156         network_name:
157           get_input: contrail_net_name
158     test_nestedInvalidConnectionToNetwork2:
159       type: org.openecomp.resource.abstract.nodes.heat.nested1
160       directives:
161       - substitutable
162       properties:
163         p1: test_contrail_net
164         service_template_filter:
165           substitute_service_template: nested1ServiceTemplate.yaml
166     test_net:
167       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
168       properties:
169         shared: true
170         network_name:
171           get_input: jsa_net_name
172     test_nestedInvalidConnectionToNetwork1:
173       type: org.openecomp.resource.abstract.nodes.heat.nested1
174       directives:
175       - substitutable
176       properties:
177         p1: test_nova
178         service_template_filter:
179           substitute_service_template: nested1ServiceTemplate.yaml
180     test_contrail_net:
181       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
182       properties:
183         network_name:
184           get_input: contrail_net_name
185     test_nova:
186       type: org.openecomp.resource.vfc.nodes.heat.jsa
187       properties:
188         image: image
189         name:
190           get_input: jsa_name
191   groups:
192     main_group:
193       type: org.openecomp.groups.heat.HeatStack
194       properties:
195         heat_file: ../Artifacts/main.yml
196         description: |
197           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
198       members:
199       - test_nested1Level
200       - test_resourceGroup
201       - test_contrailV2_net
202       - test_nestedInvalidConnectionToNetwork2
203       - test_net
204       - test_nestedInvalidConnectionToNetwork1
205       - test_contrail_net
206       - test_nova