push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / securityruletosharedportresourcegrouplinking / 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     p2:
51       hidden: false
52       immutable: false
53       type: string
54       description: UID of OAM network
55     cmaui_image:
56       hidden: false
57       immutable: false
58       type: string
59       description: Image for CMAUI server
60     cmaui_flavor:
61       hidden: false
62       immutable: false
63       type: string
64       description: Flavor for CMAUI server
65     availability_zone_0:
66       label: availabilityzone name
67       hidden: false
68       immutable: false
69       type: string
70       description: availabilityzone name
71     cmaui_oam_ips:
72       hidden: false
73       immutable: false
74       type: string
75     net:
76       hidden: false
77       immutable: false
78       type: string
79       description: UID of OAM network
80   node_templates:
81     cmaui_port_2:
82       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
83       properties:
84         replacement_policy: AUTO
85         security_groups:
86         - get_input: p1
87         fixed_ips:
88         - ip_address:
89             get_input:
90             - cmaui_oam_ips
91             - 0
92         network:
93           get_input: net
94       requirements:
95       - binding:
96           capability: tosca.capabilities.network.Bindable
97           node: server_cmaui
98           relationship: tosca.relationships.network.BindsTo
99     server_cmaui:
100       type: org.openecomp.resource.vfc.nodes.heat.cmaui
101       properties:
102         flavor:
103           get_input: cmaui_flavor
104         availability_zone:
105           get_input: availability_zone_0
106         image:
107           get_input: cmaui_image
108         name:
109           get_input:
110           - cmaui_names
111           - 0
112     cmaui_port_1:
113       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
114       properties:
115         replacement_policy: AUTO
116         security_groups:
117         - get_input: p1
118         - get_input: p2
119         fixed_ips:
120         - ip_address:
121             get_input:
122             - cmaui_oam_ips
123             - 0
124         network:
125           get_input: net
126       requirements:
127       - binding:
128           capability: tosca.capabilities.network.Bindable
129           node: server_cmaui
130           relationship: tosca.relationships.network.BindsTo
131   groups:
132     nested:
133       type: org.openecomp.groups.heat.HeatStack
134       properties:
135         heat_file: ../Artifacts/nested.yml
136         description: cmaui server template for vMMSC
137       members:
138       - cmaui_port_2
139       - server_cmaui
140       - cmaui_port_1
141   substitution_mappings:
142     node_type: org.openecomp.resource.abstract.nodes.heat.nested
143     capabilities:
144       host_server_cmaui:
145       - server_cmaui
146       - host
147       os_server_cmaui:
148       - server_cmaui
149       - os
150       endpoint_server_cmaui:
151       - server_cmaui
152       - endpoint
153       binding_server_cmaui:
154       - server_cmaui
155       - binding
156       attachment_cmaui_port_2:
157       - cmaui_port_2
158       - attachment
159       scalable_server_cmaui:
160       - server_cmaui
161       - scalable
162       attachment_cmaui_port_1:
163       - cmaui_port_1
164       - attachment
165     requirements:
166       local_storage_server_cmaui:
167       - server_cmaui
168       - local_storage
169       link_cmaui_port_2:
170       - cmaui_port_2
171       - link
172       link_cmaui_port_1:
173       - cmaui_port_1
174       - link