[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 / buildconsolidationdata / dependsonresource / nodesConnectedIn / expectedoutputfiles / 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.pd_server:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     pd_flavor_name:
13       label: PD flavor name
14       hidden: false
15       immutable: false
16       type: string
17       description: flavor name of PD instance
18     availabilityzone_name:
19       label: availabilityzone name
20       hidden: false
21       immutable: false
22       type: string
23       description: availabilityzone name
24     oam_flavor_name:
25       label: OAM flavor name
26       hidden: false
27       immutable: false
28       type: string
29       description: flavor name of OAM instance
30     pd_image_name:
31       label: image name
32       hidden: false
33       immutable: false
34       type: string
35       description: PD image name
36     packet_mirror_network_name:
37       label: packet mirror network name
38       hidden: false
39       immutable: false
40       type: string
41       description: name of the oam network
42     pd_server_names:
43       label: PD server names
44       hidden: false
45       immutable: false
46       type: list
47       description: name of the PD instance
48       entry_schema:
49         type: string
50     oam_net_name:
51       label: oam network name
52       hidden: false
53       immutable: false
54       type: string
55       description: name of the oam network
56   node_templates:
57     pd01_port_0:
58       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
59       properties:
60         ip_requirements:
61         - ip_version: 4
62           ip_count_required:
63             is_required: false
64           floating_ip_count_required:
65             is_required: false
66         mac_requirements:
67           mac_count_required:
68             is_required: false
69         network_role_tag: oam
70         network:
71           get_input: oam_net_name
72       requirements:
73       - binding:
74           capability: tosca.capabilities.network.Bindable
75           node: server_pd_01
76           relationship: tosca.relationships.network.BindsTo
77     resources_with_dependOn:
78       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
79       properties:
80         network_name:
81           get_input: packet_mirror_network_name
82       requirements:
83       - dependency:
84           capability: tosca.capabilities.Node
85           node: server_pd_01
86           relationship: tosca.relationships.DependsOn
87     pd02_port_0:
88       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
89       properties:
90         ip_requirements:
91         - ip_version: 4
92           ip_count_required:
93             is_required: false
94           floating_ip_count_required:
95             is_required: false
96         mac_requirements:
97           mac_count_required:
98             is_required: false
99         network_role_tag: oam
100         network:
101           get_input: oam_net_name
102       requirements:
103       - binding:
104           capability: tosca.capabilities.network.Bindable
105           node: server_pd_01
106           relationship: tosca.relationships.network.BindsTo
107     server_pd_01:
108       type: org.openecomp.resource.vfc.nodes.heat.pd_server
109       properties:
110         flavor:
111           get_input: pd_flavor_name
112         availability_zone:
113           get_input: availabilityzone_name
114         image:
115           get_input: pd_image_name
116         user_data_format: RAW
117         name:
118           get_input:
119           - pd_server_names
120           - 0
121   groups:
122     input_group:
123       type: org.openecomp.groups.heat.HeatStack
124       properties:
125         heat_file: ../Artifacts/input.yaml
126         description: heat template that creates MOG stack
127       members:
128       - pd01_port_0
129       - resources_with_dependOn
130       - pd02_port_0
131       - server_pd_01