[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / test / resources / mock / analyzerService / NestedServiceTemplateReqTest.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7 - NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9 - CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11 - CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13 - ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15 - NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17 - NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19 - ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - nested:
24     file: GlobalSubstitutionTypesServiceTemplate.yaml
25 node_types:
26   org.openecomp.resource.vfc.nodes.heat.cmaui_image:
27     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
28 topology_template:
29   inputs:
30     cmaui_names:
31       hidden: false
32       immutable: false
33       type: list
34       description: CMAUI1, CMAUI2 server names
35       entry_schema:
36         type: String
37     p1:
38       hidden: false
39       immutable: false
40       type: string
41       description: UID of OAM network
42     cmaui_image:
43       hidden: false
44       immutable: false
45       type: string
46       description: Image for CMAUI server
47     cmaui_flavor:
48       hidden: false
49       immutable: false
50       type: string
51       description: Flavor for CMAUI server
52     security_group_name:
53       hidden: false
54       immutable: false
55       description: not impotrtant
56     availability_zone_0:
57       label: availabilityzone name
58       hidden: false
59       immutable: false
60       type: string
61       description: availabilityzone name
62   node_templates:
63     server_cmaui:
64       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
65       properties:
66         flavor:
67           get_input: cmaui_flavor
68         availability_zone:
69           get_input: availability_zone_0
70         image:
71           get_input: cmaui_image
72         name:
73           get_input:
74           - cmaui_names
75           - 0
76     cmaui_port_0:
77       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
78       properties:
79         replacement_policy: AUTO
80         security_groups:
81         - get_input: security_group_name
82         fixed_ips:
83         - ip_address:
84             get_input:
85             - cmaui_oam_ips
86             - 0
87         network:
88           get_input: p1
89       requirements:
90       - binding:
91           capability: tosca.capabilities.network.Bindable
92           node: server_cmaui
93           relationship: tosca.relationships.network.BindsTo
94     cmaui1_port_1:
95           type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
96           properties:
97             replacement_policy: AUTO
98             security_groups:
99             - get_input: security_group_name
100             fixed_ips:
101             - subnet: subnetNameVal
102               ip_address:
103                 get_input:
104                 - cmaui_oam_ips
105                 - 1
106             - subnet: subnetNameVal2
107               ip_address:
108                 get_input:
109                 - cmaui_oam_ips
110                 - 1
111             network: jsa_net
112           requirements:
113           - link:
114               capability: tosca.capabilities.network.Linkable
115               node: jsa_net1
116               relationship: tosca.relationships.network.LinksTo
117           - link:
118               capability: tosca.capabilities.network.Linkable
119               node: jsa_net2
120               relationship: tosca.relationships.network.LinksTo
121           - binding:
122               capability: tosca.capabilities.network.Bindable
123               node: server_cmaui
124               relationship: tosca.relationships.network.BindsTo
125     jsa_net1:
126           type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
127           properties:
128             shared: true
129             network_name:
130               get_input: jsa_net_name
131     jsa_net2:
132               type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
133               properties:
134                 shared: true
135                 network_name:
136                   get_input: jsa_net_name
137   groups:
138     nested:
139       type: org.openecomp.groups.heat.HeatStack
140       properties:
141         heat_file: ../Artifacts/nested.yml
142         description: cmaui server template for vMMSC
143       members:
144       - server_cmaui
145       - cmaui_port_0
146   substitution_mappings:
147     node_type: org.openecomp.resource.abstract.nodes.heat.nested
148     capabilities:
149       host_server_cmaui:
150       - server_cmaui
151       - host
152       os_server_cmaui:
153       - server_cmaui
154       - os
155       endpoint_server_cmaui:
156       - server_cmaui
157       - endpoint
158       binding_server_cmaui:
159       - server_cmaui
160       - binding
161       scalable_server_cmaui:
162       - server_cmaui
163       - scalable
164       attachment_cmaui_port_0:
165       - cmaui_port_0
166       - attachment
167     requirements:
168       local_storage_server_cmaui:
169       - server_cmaui
170       - local_storage
171       link_cmaui_port_0:
172       - cmaui_port_0
173       - link
174       link_cmaui_port_invalid:
175       - cmaui_port_9
176       - link