push addional code
[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   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 topology_template:
34   inputs:
35     shared_network_id1:
36       hidden: false
37       immutable: false
38       type: string
39       description: network name of jsa log network
40     shared_network_id2:
41       hidden: false
42       immutable: false
43       type: string
44       description: network name of jsa log network
45     jsa_net_name:
46       hidden: false
47       immutable: false
48       type: string
49       description: network name of jsa log network
50   node_templates:
51     mvs_modules:
52       type: org.openecomp.resource.abstract.nodes.heat.nested1
53       directives:
54       - substitutable
55       properties:
56         p1:
57           get_input: shared_network_id1
58         service_template_filter:
59           substitute_service_template: nested1ServiceTemplate.yaml
60           count: 3
61           mandatory: true
62         p2:
63           get_input: shared_network_id2
64       requirements:
65       - link_cmaui_port_2:
66           capability: tosca.capabilities.network.Linkable
67           node: test_net2
68           relationship: tosca.relationships.network.LinksTo
69       - link_abc_port_1:
70           capability: tosca.capabilities.network.Linkable
71           node: test_net2
72           relationship: tosca.relationships.network.LinksTo
73       - link_cmaui_port_1:
74           capability: tosca.capabilities.network.Linkable
75           node: test_net1
76           relationship: tosca.relationships.network.LinksTo
77     test_net2:
78       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
79       properties:
80         shared: true
81         network_name:
82           get_input: jsa_net_name
83     test_net1:
84       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
85       properties:
86         shared: true
87         network_name:
88           get_input: jsa_net_name
89     test_nested1:
90       type: org.openecomp.resource.abstract.nodes.heat.nested1
91       directives:
92       - substitutable
93       properties:
94         p1:
95           get_input: shared_network_id1
96         service_template_filter:
97           substitute_service_template: nested1ServiceTemplate.yaml
98         p2:
99           get_input: shared_network_id2
100       requirements:
101       - link_cmaui_port_2:
102           capability: tosca.capabilities.network.Linkable
103           node: test_net2
104           relationship: tosca.relationships.network.LinksTo
105       - link_abc_port_1:
106           capability: tosca.capabilities.network.Linkable
107           node: test_net2
108           relationship: tosca.relationships.network.LinksTo
109       - link_cmaui_port_1:
110           capability: tosca.capabilities.network.Linkable
111           node: test_net1
112           relationship: tosca.relationships.network.LinksTo
113   groups:
114     addOn:
115       type: org.openecomp.groups.heat.HeatStack
116       properties:
117         heat_file: ../Artifacts/addOn.yml
118         description: |
119           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
120       members:
121       - mvs_modules
122       - test_nested1
123     main:
124       type: org.openecomp.groups.heat.HeatStack
125       properties:
126         heat_file: ../Artifacts/main.yml
127         description: |
128           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
129       members:
130       - test_net2
131       - test_net1