push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / nestednotconnected / 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.cmaui:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     cmaui_names:
39       hidden: false
40       immutable: false
41       type: list
42       description: CMAUI1, CMAUI2 server names
43       entry_schema:
44         type: string
45     p1:
46       hidden: false
47       immutable: false
48       type: string
49       description: UID of OAM network
50     cmaui_image:
51       hidden: false
52       immutable: false
53       type: string
54       description: Image for CMAUI server
55     cmaui_flavor:
56       hidden: false
57       immutable: false
58       type: string
59       description: Flavor for CMAUI server
60     cmaui_cinder_volume_size:
61       label: CMAUI Cinder volume size
62       hidden: false
63       immutable: false
64       type: float
65       description: the size of the CMAUI Cinder volume
66     security_group_name:
67       hidden: false
68       immutable: false
69       type: list
70       description: CMAUI1, CMAUI2 server names
71       entry_schema:
72         type: string
73     availability_zone_0:
74       label: availabilityzone name
75       hidden: false
76       immutable: false
77       type: string
78       description: availabilityzone name
79     cmaui_oam_ips:
80       hidden: false
81       immutable: false
82       type: string
83     CMAUI_volume_type:
84       label: CMAUI vm volume type
85       hidden: false
86       immutable: false
87       type: string
88       description: the name of the target volume backend
89   node_templates:
90     server_cmaui1:
91       type: org.openecomp.resource.vfc.nodes.heat.cmaui
92       properties:
93         flavor:
94           get_input: cmaui_flavor
95         availability_zone:
96           get_input: availability_zone_0
97         image:
98           get_input: cmaui_image
99         name:
100           get_input:
101           - cmaui_names
102           - 0
103     test_vol:
104       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
105       properties:
106         volume_type:
107           get_input: CMAUI_volume_type
108         size: '(get_input : cmaui_cinder_volume_size) * 1024'
109     cmaui_port_1:
110       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
111       properties:
112         replacement_policy: AUTO
113         security_groups:
114         - get_input: security_group_name
115         fixed_ips:
116         - ip_address:
117             get_input:
118             - cmaui_oam_ips
119             - 0
120         network:
121           get_input: p1
122       requirements:
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: server_cmaui1
126           relationship: tosca.relationships.network.BindsTo
127     test_nested:
128       type: org.openecomp.resource.abstract.nodes.heat.nested
129       directives:
130       - substitutable
131       properties:
132         service_template_filter:
133           substitute_service_template: nestedServiceTemplate.yaml
134         cmaui_volume_param: server_cmaui1
135   groups:
136     main:
137       type: org.openecomp.groups.heat.HeatStack
138       properties:
139         heat_file: ../Artifacts/main.yml
140         description: |
141           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
142       members:
143       - server_cmaui1
144       - test_vol
145       - cmaui_port_1
146       - test_nested