[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / scalingInstances / oneComputeTypeOnePortNodeConnectedIn / out / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       type: string
16       description: flavor name of PD instance
17       default: m3.xlarge
18     availabilityzone_name:
19       label: availabilityzone name
20       hidden: false
21       immutable: false
22       type: string
23       description: availabilityzone name
24       default: nova
25     pd_image_name:
26       label: image name
27       hidden: false
28       immutable: false
29       type: string
30       description: PD image name
31       default: MOG_BASE_8.0
32     packet_mirror_network_name:
33       label: packet mirror network name
34       hidden: false
35       immutable: false
36       type: string
37       description: name of the oam network
38     pd_server_names:
39       label: PD server names
40       hidden: false
41       immutable: false
42       type: list
43       description: name of the PD instance
44       default:
45       - ZRDM1MOGX01MPD001
46       - ZRDM1MOGX01MPD002
47       entry_schema:
48         type: string
49   node_templates:
50     jsa_security_group:
51       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
52       properties:
53         name: Test-SecurityGroup
54         description: ems security group
55         rules:
56         - protocol: icmp
57           ethertype: IPv6
58           remote_ip_prefix: ::/0
59           direction: ingress
60       requirements:
61       - port:
62           capability: attachment_pd_server_pd01_port
63           node: abstract_pd_server
64           relationship: org.openecomp.relationships.AttachesTo
65     abstract_pd_server:
66       type: org.openecomp.resource.abstract.nodes.pd_server
67       directives:
68       - substitutable
69       properties:
70         compute_pd_server_availability_zone:
71         - get_input: availabilityzone_name
72         - get_input: availabilityzone_name
73         compute_pd_server_name:
74         - get_input:
75           - pd_server_names
76           - 1
77         - get_input:
78           - pd_server_names
79           - 0
80         port_pd01_port_replacement_policy:
81         - AUTO_PORT_1
82         - AUTO_PORT_0
83         vm_flavor_name:
84           get_input: pd_flavor_name
85         port_pd01_port_security_groups:
86         - - jsa_security_group
87         port_pd01_port_mac_requirements:
88           mac_count_required:
89             is_required: false
90         vm_image_name:
91           get_input: pd_image_name
92         port_pd01_port_ip_requirements:
93         - ip_version: 4
94           ip_count_required:
95             is_required: false
96           floating_ip_count_required:
97             is_required: false
98         port_pd01_port_network:
99         - Network-1
100         - Network-0
101         compute_pd_server_user_data_format:
102         - RAW_SERVER_PD_2
103         - RAW_SERVER_PD_1
104         service_template_filter:
105           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
106           count: 2
107         index_value:
108           get_property:
109           - SELF
110           - service_template_filter
111           - index_value
112     resource_with_dependOn:
113       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
114       properties:
115         network_name:
116           get_input: packet_mirror_network_name
117       requirements:
118       - dependency:
119           capability: feature_pd_server
120           node: abstract_pd_server
121           relationship: tosca.relationships.DependsOn
122   groups:
123     hot-mog-0108-bs1271_group:
124       type: org.openecomp.groups.heat.HeatStack
125       properties:
126         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
127         description: heat template that creates MOG stack
128       members:
129       - jsa_security_group
130       - resource_with_dependOn
131       - abstract_pd_server