[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updGroupsConnectivity / noConsolidation / in / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.smp:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     image_smp_name:
13       hidden: false
14       immutable: false
15       type: string
16       description: SCP SMP image
17       default: asc_base_image_smp
18     lab_name:
19       hidden: false
20       immutable: false
21       type: string
22       description: Lab name
23     vnf_name:
24       hidden: false
25       immutable: false
26       type: string
27       description: Unique name for this VNF instance
28       default: This_is_the_SCP_name
29     vnf_id:
30       hidden: false
31       immutable: false
32       type: string
33       description: Unique ID for this VNF instance
34       default: This_is_ths_SCP_id
35     flavor_smp_name:
36       hidden: false
37       immutable: false
38       type: string
39       description: SCP SMP Flavor
40       default: a1.Small
41     availability_zone_0:
42       hidden: false
43       immutable: false
44       type: string
45     port_name:
46       hidden: false
47       immutable: false
48       type: string
49       description: port name
50       default: port_name
51   node_templates:
52     port1:
53       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
54       properties:
55         replacement_policy: AUTO
56         network:
57           get_input: port_name
58       requirements:
59       - binding:
60           capability: tosca.capabilities.network.Bindable
61           node: server_smp1
62           relationship: tosca.relationships.network.BindsTo
63     server_smp1:
64       type: org.openecomp.resource.vfc.nodes.heat.smp
65       properties:
66         flavor:
67           get_input: flavor_smp_name
68         availability_zone:
69           get_input: availability_zone_0
70         image:
71           get_input: image_smp_name
72         metadata:
73           jx_vm_role: smp2
74           vnf_id:
75             get_input: vnf_id
76           jx_lab_name:
77             get_input: lab_name
78         user_data_format: RAW
79         name:
80           get_input: smp_name_1
81         scheduler_hints:
82           group: BE_Affinity_group
83     port2:
84       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
85       properties:
86         replacement_policy: AUTO
87         network:
88           get_input: port_name
89       requirements:
90       - binding:
91           capability: tosca.capabilities.network.Bindable
92           node: server_smp1
93           relationship: tosca.relationships.network.BindsTo
94   groups:
95     FE_SMP_Affinity_group:
96       type: tosca.groups.Root
97       members:
98       - server_smp1
99     hot_template_group:
100       type: org.openecomp.groups.heat.HeatStack
101       properties:
102         heat_file: ../Artifacts/hot_template.yml
103         description: ASC Template
104       members:
105       - port1
106       - server_smp1
107       - port2
108     BE_Affinity_group:
109       type: tosca.groups.Root
110       members:
111       - server_smp1
112   policies:
113     BE_Affinity_policy:
114       type: org.openecomp.policies.placement.Colocate
115       properties:
116         name: def
117         affinity: host
118       targets:
119       - BE_Affinity_group
120     FE_SMP_Affinity_policy:
121       type: org.openecomp.policies.placement.Colocate
122       properties:
123         name: abc
124         affinity: host
125       targets:
126       - FE_SMP_Affinity_group