push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / nested / 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     jsa_net_name:
36       hidden: false
37       immutable: false
38       type: string
39       description: network name of jsa log network
40   node_templates:
41     test_net1:
42       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
43       properties:
44         shared: true
45         network_name:
46           get_input: jsa_net_name
47     test_net:
48       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
49       properties:
50         shared: true
51         network_name:
52           get_input: jsa_net_name
53     test_nested:
54       type: org.openecomp.resource.abstract.nodes.heat.nested
55       directives:
56       - substitutable
57       properties:
58         p1: test_net
59         service_template_filter:
60           substitute_service_template: nestedServiceTemplate.yaml
61         p2: test_net1
62       requirements:
63       - link_template_VMInt_OAM_lb_1:
64           capability: tosca.capabilities.network.Linkable
65           node: test_net
66           relationship: tosca.relationships.network.LinksTo
67       - link_template_VMInt_OAM_lb_2:
68           capability: tosca.capabilities.network.Linkable
69           node: test_net
70           relationship: tosca.relationships.network.LinksTo
71   groups:
72     main:
73       type: org.openecomp.groups.heat.HeatStack
74       properties:
75         heat_file: ../Artifacts/main.yml
76         description: |
77           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
78       members:
79       - test_net1
80       - test_net
81       - test_nested