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