[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / test / resources / extractServiceComposition / substitution / nested2ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested2
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.cmaui_image:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       type: list
18       description: CMAUI1, CMAUI2 server names
19       entry_schema:
20         type: String
21     p1:
22       hidden: false
23       immutable: false
24       type: string
25       description: UID of OAM network
26     cmaui_image:
27       hidden: false
28       immutable: false
29       type: string
30       description: Image for CMAUI server
31     cmaui_flavor:
32       hidden: false
33       immutable: false
34       type: string
35       description: Flavor for CMAUI server
36     security_group_name:
37       hidden: false
38       immutable: false
39       description: not impotrtant
40     availability_zone_0:
41       label: availabilityzone name
42       hidden: false
43       immutable: false
44       type: string
45       description: availabilityzone name
46   node_templates:
47     server_cmaui:
48       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
49       properties:
50         flavor:
51           get_input: cmaui_flavor
52         availability_zone:
53           get_input: availability_zone_0
54         image:
55           get_input: cmaui_image
56         name:
57           get_input:
58           - cmaui_names
59           - 0
60     cmaui_port_1:
61       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
62       properties:
63         replacement_policy: AUTO
64         security_groups:
65         - get_input: security_group_name
66         fixed_ips:
67         - ip_address:
68             get_input:
69             - cmaui_oam_ips
70             - 0
71         network:
72           get_input: p1
73       requirements:
74       - binding:
75           capability: tosca.capabilities.network.Bindable
76           node: server_cmaui
77           relationship: tosca.relationships.network.BindsTo
78     Internal1-net:
79       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
80       properties:
81         network_name:
82           get_input: Internal1_net_name
83   groups:
84     nested2:
85       type: org.openecomp.groups.heat.HeatStack
86       properties:
87         heat_file: ../Artifacts/nested2.yml
88         description: cmaui server template for vMMSC
89       members:
90       - server_cmaui
91       - cmaui_port_1
92   substitution_mappings:
93     node_type: org.openecomp.resource.abstract.nodes.heat.nested2
94     capabilities:
95       host_server_cmaui:
96       - server_cmaui
97       - host
98       os_server_cmaui:
99       - server_cmaui
100       - os
101       endpoint_server_cmaui:
102       - server_cmaui
103       - endpoint
104       binding_server_cmaui:
105       - server_cmaui
106       - binding
107       scalable_server_cmaui:
108       - server_cmaui
109       - scalable
110       attachment_cmaui_port_1:
111       - cmaui_port_1
112       - attachment
113     requirements:
114       local_storage_server_cmaui:
115       - server_cmaui
116       - local_storage
117       link_cmaui_port_1:
118       - cmaui_port_1
119       - link