[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 / removeInvalidDependencyFromTosca / 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.MASTER:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     MASTER_image_name:
13       hidden: false
14       immutable: false
15       type: string
16       description: JSA MASTER instance image name
17     MASTER_names:
18       hidden: false
19       immutable: false
20       type: string
21       description: JSA MASTER instance name
22     packet_internal_network_name:
23       hidden: false
24       immutable: false
25       type: string
26       description: A string specifying a symbolic name for the network
27     security_group_name:
28       hidden: false
29       immutable: false
30       type: string
31       description: security group name of JSA
32     MASTER_flavor_name:
33       hidden: false
34       immutable: false
35       type: string
36       description: the flavor name of JSA MASTER instance
37     oam_net_name:
38       hidden: false
39       immutable: false
40       type: string
41       description: network name of OAM network
42   node_templates:
43     MASTER_instance_2:
44       type: org.openecomp.resource.vfc.nodes.heat.MASTER
45       properties:
46         flavor:
47           get_input: MASTER_flavor_name
48         image:
49           get_input: MASTER_image_name
50         name:
51           get_input: MASTER_names
52     packet_internal_network:
53       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
54       properties:
55         network_name:
56           get_input: packet_internal_network_name
57       requirements:
58       - dependency:
59           capability: tosca.capabilities.Node
60           node: MASTER_mgmt_port
61           relationship: tosca.relationships.DependsOn
62     MASTER_mgmt_port_2:
63       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
64       properties:
65         ip_requirements:
66         - ip_version: 4
67           ip_count_required:
68             is_required: false
69           floating_ip_count_required:
70             is_required: false
71         mac_requirements:
72           mac_count_required:
73             is_required: false
74         network_role_tag: oam
75         network:
76           get_input: oam_net_name
77     MASTER_mgmt_port:
78       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
79       properties:
80         ip_requirements:
81         - ip_version: 4
82           ip_count_required:
83             is_required: false
84           floating_ip_count_required:
85             is_required: false
86         mac_requirements:
87           mac_count_required:
88             is_required: false
89         network_role_tag: oam
90         network:
91           get_input: oam_net_name
92       requirements:
93       - binding:
94           capability: tosca.capabilities.network.Bindable
95           node: MASTER_instance
96           relationship: tosca.relationships.network.BindsTo
97       - binding:
98           capability: tosca.capabilities.network.Bindable
99           node: MASTER_instance_2
100           relationship: tosca.relationships.network.BindsTo
101     MASTER_instance:
102       type: org.openecomp.resource.vfc.nodes.heat.MASTER
103       properties:
104         flavor:
105           get_input: MASTER_flavor_name
106         image:
107           get_input: MASTER_image_name
108         name:
109           get_input: MASTER_names
110       requirements:
111       - dependency:
112           capability: tosca.capabilities.Node
113           node: packet_internal_network
114           relationship: tosca.relationships.DependsOn
115   groups:
116     input_group:
117       type: org.openecomp.groups.heat.HeatStack
118       properties:
119         heat_file: ../Artifacts/input.yaml
120         description: |
121           Version 2.0 02-11-2016 (Authors: John Doe, user PROD)
122       members:
123       - MASTER_instance_2
124       - packet_internal_network
125       - MASTER_mgmt_port_2
126       - MASTER_mgmt_port
127       - MASTER_instance