[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 / shared / 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 topology_template:
40   inputs:
41     shared_network_id1:
42       hidden: false
43       immutable: false
44       type: string
45       description: network name of jsa log network
46     shared_network_id2:
47       hidden: false
48       immutable: false
49       type: string
50       description: network name of jsa log network
51     jsa_net_name:
52       hidden: false
53       immutable: false
54       type: string
55       description: network name of jsa log network
56   node_templates:
57     test_net2:
58       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
59       properties:
60         shared: true
61         network_name:
62           get_input: jsa_net_name
63     test_nested2:
64       type: org.openecomp.resource.abstract.nodes.heat.nested2
65       directives:
66       - substitutable
67       properties:
68         p1:
69           get_input: shared_network_id1
70         service_template_filter:
71           substitute_service_template: nested2ServiceTemplate.yaml
72       requirements:
73       - link_cmaui_port_1:
74           capability: tosca.capabilities.network.Linkable
75           node: test_net1
76           relationship: tosca.relationships.network.LinksTo
77       - link_template_Vlan_3:
78           capability: tosca.capabilities.network.Linkable
79           node: test_net1
80           relationship: tosca.relationships.network.LinksTo
81     test_nested3:
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       - link_template_Vlan_3:
110           capability: tosca.capabilities.network.Linkable
111           node: test_net2
112           relationship: tosca.relationships.network.LinksTo
113       - link_template_Vlan_2:
114           capability: tosca.capabilities.network.Linkable
115           node: test_net2
116           relationship: tosca.relationships.network.LinksTo
117       - link_template_Vlan_1:
118           capability: tosca.capabilities.network.Linkable
119           node: test_net1
120           relationship: tosca.relationships.network.LinksTo
121     test_net1:
122       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
123       properties:
124         shared: true
125         network_name:
126           get_input: jsa_net_name
127     test_nested1:
128       type: org.openecomp.resource.abstract.nodes.heat.nested1
129       directives:
130       - substitutable
131       properties:
132         service_template_filter:
133           substitute_service_template: nested1ServiceTemplate.yaml
134         shared_network_id1:
135           get_input: shared_network_id1
136         p2:
137           get_input: shared_network_id2
138       requirements:
139       - link_abc_port_1:
140           capability: tosca.capabilities.network.Linkable
141           node: test_net2
142           relationship: tosca.relationships.network.LinksTo
143       - link_template_VMInt_OAM_lb_1:
144           capability: tosca.capabilities.network.Linkable
145           node: test_net1
146           relationship: tosca.relationships.network.LinksTo
147       - link_template_VMInt_OAM_lb_2:
148           capability: tosca.capabilities.network.Linkable
149           node: test_net2
150           relationship: tosca.relationships.network.LinksTo
151       - link_template_VMInt_OAM_lb_3:
152           capability: tosca.capabilities.network.Linkable
153           node: test_net2
154           relationship: tosca.relationships.network.LinksTo
155       - link_template_Vlan_3:
156           capability: tosca.capabilities.network.Linkable
157           node: test_net2
158           relationship: tosca.relationships.network.LinksTo
159       - link_template_Vlan_2:
160           capability: tosca.capabilities.network.Linkable
161           node: test_net2
162           relationship: tosca.relationships.network.LinksTo
163       - link_template_Vlan_1:
164           capability: tosca.capabilities.network.Linkable
165           node: test_net1
166           relationship: tosca.relationships.network.LinksTo
167   groups:
168     main_group:
169       type: org.openecomp.groups.heat.HeatStack
170       properties:
171         heat_file: ../Artifacts/main.yml
172         description: |
173           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
174       members:
175       - test_net2
176       - test_net1
177     addOn_group:
178       type: org.openecomp.groups.heat.HeatStack
179       properties:
180         heat_file: ../Artifacts/addOn.yml
181         description: |
182           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
183       members:
184       - test_nested2
185       - test_nested3
186       - test_nested1