push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttonetconnection / 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 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     contrail_net_name:
39       hidden: false
40       immutable: false
41       type: string
42     jsa_net_name:
43       hidden: false
44       immutable: false
45       type: string
46       description: network name of jsa log network
47     jsa_name:
48       hidden: false
49       immutable: false
50       type: string
51   node_templates:
52     test_nestedInvalidConnectionToNetwork:
53       type: org.openecomp.resource.abstract.nodes.heat.nested
54       directives:
55       - substitutable
56       properties:
57         p1: test_nova
58         service_template_filter:
59           substitute_service_template: nestedServiceTemplate.yaml
60     test_contrailV2_net:
61       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
62       properties:
63         network_name:
64           get_input: contrail_net_name
65     test_net:
66       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
67       properties:
68         shared: true
69         network_name:
70           get_input: jsa_net_name
71     test_nova:
72       type: org.openecomp.resource.vfc.nodes.heat.jsa
73       properties:
74         image: image
75         name:
76           get_input: jsa_name
77     test_nested:
78       type: org.openecomp.resource.abstract.nodes.heat.nested
79       directives:
80       - substitutable
81       properties:
82         p1: test_net
83         service_template_filter:
84           substitute_service_template: nestedServiceTemplate.yaml
85         p2:
86           get_attribute:
87           - test_contrailV2_net
88           - fq_name
89       requirements:
90       - link_cmaui_port_1:
91           capability: tosca.capabilities.network.Linkable
92           node: test_contrailV2_net
93           relationship: tosca.relationships.network.LinksTo
94       - link_cmaui_port_0:
95           capability: tosca.capabilities.network.Linkable
96           node: test_net
97           relationship: tosca.relationships.network.LinksTo
98   groups:
99     main:
100       type: org.openecomp.groups.heat.HeatStack
101       properties:
102         heat_file: ../Artifacts/main.yml
103         description: |
104           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
105       members:
106       - test_nestedInvalidConnectionToNetwork
107       - test_contrailV2_net
108       - test_net
109       - test_nova
110       - test_nested