push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / nestedconnection / expectedoutputfiles / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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_volume_param:
56       hidden: false
57       immutable: false
58       type: string
59       description: nova server id
60     cmaui_flavor:
61       hidden: false
62       immutable: false
63       type: string
64       description: Flavor for CMAUI server
65     security_group_name:
66       hidden: false
67       immutable: false
68       type: list
69       description: CMAUI1, CMAUI2 server names
70       entry_schema:
71         type: string
72     availability_zone_0:
73       label: availabilityzone name
74       hidden: false
75       immutable: false
76       type: string
77       description: availabilityzone name
78     cmaui_oam_ips:
79       hidden: false
80       immutable: false
81       type: string
82   node_templates:
83     server_cmaui:
84       type: org.openecomp.resource.vfc.nodes.heat.cmaui
85       properties:
86         flavor:
87           get_input: cmaui_flavor
88         availability_zone:
89           get_input: availability_zone_0
90         image:
91           get_input: cmaui_image
92         name:
93           get_input:
94           - cmaui_names
95           - 0
96     cmaui_port_0:
97       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
98       properties:
99         replacement_policy: AUTO
100         security_groups:
101         - get_input: security_group_name
102         fixed_ips:
103         - ip_address:
104             get_input:
105             - cmaui_oam_ips
106             - 0
107         network:
108           get_input: p1
109       requirements:
110       - binding:
111           capability: tosca.capabilities.network.Bindable
112           node: server_cmaui
113           relationship: tosca.relationships.network.BindsTo
114   groups:
115     nested:
116       type: org.openecomp.groups.heat.HeatStack
117       properties:
118         heat_file: ../Artifacts/nested.yml
119         description: cmaui server template for vMMSC
120       members:
121       - server_cmaui
122       - cmaui_port_0
123   substitution_mappings:
124     node_type: org.openecomp.resource.abstract.nodes.heat.nested
125     capabilities:
126       host_server_cmaui:
127       - server_cmaui
128       - host
129       os_server_cmaui:
130       - server_cmaui
131       - os
132       endpoint_server_cmaui:
133       - server_cmaui
134       - endpoint
135       binding_server_cmaui:
136       - server_cmaui
137       - binding
138       scalable_server_cmaui:
139       - server_cmaui
140       - scalable
141       attachment_cmaui_port_0:
142       - cmaui_port_0
143       - attachment
144     requirements:
145       local_storage_server_cmaui:
146       - server_cmaui
147       - local_storage
148       link_cmaui_port_0:
149       - cmaui_port_0
150       - link