push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / innernestedconnection / 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     cmaui_names:
36       hidden: false
37       immutable: false
38       type: list
39       description: CMAUI1, CMAUI2 server names
40       entry_schema:
41         type: string
42     cmaui_cinder_volume_size:
43       label: CMAUI Cinder volume size
44       hidden: false
45       immutable: false
46       type: float
47       description: the size of the CMAUI Cinder volume
48     timezone:
49       label: timezone
50       hidden: false
51       immutable: false
52       type: string
53       description: timezone
54     security_group_name:
55       label: security group name
56       hidden: false
57       immutable: false
58       type: string
59       description: the name of security group
60     oam_network_netmask:
61       label: oam network netmask
62       hidden: false
63       immutable: false
64       type: string
65       description: oam network gateway
66     cmaui_image:
67       hidden: false
68       immutable: false
69       type: string
70       description: Image for CMAUI server
71     vnf_id:
72       hidden: false
73       immutable: false
74       type: string
75       description: Unique ID for this VNF instance
76       default: This_is_ths_MMSC-CMAUI_id
77     cmaui_flavor:
78       hidden: false
79       immutable: false
80       type: string
81       description: Flavor for CMAUI server
82     oam_network_gateway:
83       label: oam network gateway
84       hidden: false
85       immutable: false
86       type: string
87       description: oam network gateway
88     availability_zone_0:
89       label: availabilityzone name
90       hidden: false
91       immutable: false
92       type: string
93       description: availabilityzone name
94     inner_cmaui_volume_a2:
95       hidden: false
96       immutable: false
97       type: string
98       description: Unique ID for this VNF instance
99       default: This_is_ths_MMSC-CMAUI_id
100     inner_cmaui_volume_a1:
101       hidden: false
102       immutable: false
103       type: string
104       description: Unique ID for this VNF instance
105       default: This_is_ths_MMSC-CMAUI_id
106     cmaui_oam_ips:
107       label: CMAUI oam_net IP addresses
108       hidden: false
109       immutable: false
110       type: list
111       description: CMAUI oam_net IP addresses
112       entry_schema:
113         type: string
114     external_dns:
115       label: dns server
116       hidden: false
117       immutable: false
118       type: string
119       description: dns server
120     oam_net_name:
121       hidden: false
122       immutable: false
123       type: string
124       description: UID of OAM network
125     external_ntp:
126       label: ntp server
127       hidden: false
128       immutable: false
129       type: string
130       description: ntp server
131     CMAUI_volume_type:
132       label: CMAUI vm volume type
133       hidden: false
134       immutable: false
135       type: string
136       description: the name of the target volume backend
137   node_templates:
138     stam_nested:
139       type: org.openecomp.resource.abstract.nodes.heat.nested
140       directives:
141       - substitutable
142       properties:
143         service_template_filter:
144           substitute_service_template: nestedServiceTemplate.yaml
145         inner_cmaui_volume_a1:
146           get_input: inner_cmaui_volume_a1
147         inner_cmaui_volume_b2:
148           get_input: inner_cmaui_volume_a2
149       requirements:
150       - local_storage_server_cmaui2:
151           capability: tosca.capabilities.Attachment
152           node: cmaui_volume2
153           relationship: tosca.relationships.AttachesTo
154       - local_storage_server_cmaui1:
155           capability: tosca.capabilities.Attachment
156           node: inner_cmaui_volume_a1
157           relationship: tosca.relationships.AttachesTo
158       - local_storage_server_cmaui1:
159           capability: tosca.capabilities.Attachment
160           node: cmaui_volume2
161           relationship: tosca.relationships.AttachesTo
162     inner_cmaui_volume_a1:
163       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
164       properties:
165         volume_type:
166           get_input: CMAUI_volume_type
167         size: '(get_input : cmaui_cinder_volume_size) * 1024'
168     cmaui_volume2:
169       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
170       properties:
171         volume_type:
172           get_input: CMAUI_volume_type
173         size: '(get_input : cmaui_cinder_volume_size) * 1024'
174   groups:
175     a_vol:
176       type: org.openecomp.groups.heat.HeatStack
177       properties:
178         heat_file: ../Artifacts/a_vol.yml
179         description: volume
180       members:
181       - inner_cmaui_volume_a1
182       - cmaui_volume2
183     main:
184       type: org.openecomp.groups.heat.HeatStack
185       properties:
186         heat_file: ../Artifacts/main.yml
187         description: cmaui server template for vMMSC
188       members:
189       - stam_nested
190   outputs:
191     inner_cmaui_volume_a2:
192       value: cmaui_volume2
193     inner_cmaui_volume_a1:
194       value: inner_cmaui_volume_a1