[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 / updNodesConnectedOut / 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.FSB:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10
11 topology_template:
12   inputs:
13     fsb1-name:
14       label: FSB1_name
15       hidden: false
16       immutable: false
17       type: string
18       description: FSB1_name
19     fsb1-Internal1-mac:
20       label: FSB1_internal_mac
21       hidden: false
22       immutable: false
23       type: string
24       description: FSB1_internal_mac
25     fsb-flavor:
26       label: FSB1_flavor
27       hidden: false
28       immutable: false
29       type: string
30       description: FSB1_flavor
31     fsb-image:
32       label: FSB1_image
33       hidden: false
34       immutable: false
35       type: string
36       description: FSB1_image
37     fsb1-Internal2-mac:
38       label: FSB1_internal_mac
39       hidden: false
40       immutable: false
41       type: string
42       description: FSB1_internal_mac
43     fsb1_zone:
44       label: FSB1_zone
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_zone
49     network_name:
50       hidden: false
51       immutable: false
52       type: string
53       description: prop
54     fsb1-oam-ip:
55       hidden: false
56       immutable: false
57       type: string
58       description: prop
59     CMAUI_volume_type:
60       hidden: false
61       immutable: false
62       type: string
63       description: prop
64     cmaui_cinder_volume_size:
65       hidden: false
66       immutable: false
67       type: string
68       description: prop
69     packet_mirror_network_name:
70       hidden: false
71       immutable: false
72       type: string
73       description: prop
74   node_templates:
75     FSB2_Internal2:
76       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
77       properties:
78         mac_address:
79           get_input: fsb1-Internal2-mac
80         network: Internal2-net
81       requirements:
82       - binding:
83           capability: tosca.capabilities.network.Bindable
84           node: FSB1_template
85           relationship: tosca.relationships.network.BindsTo
86     FSB1_Internal1:
87       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
88       properties:
89         mac_address:
90           get_input: fsb1-Internal1-mac
91         network: Internal1-net
92       requirements:
93       - binding:
94           capability: tosca.capabilities.network.Bindable
95           node: FSB1_template
96           relationship: tosca.relationships.network.BindsTo
97       - link:
98           capability: tosca.capabilities.network.Linkable
99           node: jsa_net1
100           relationship: tosca.relationships.network.LinksTo
101     FSB1_OAM:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         fixed_ips:
105         - ip_address:
106             get_input: fsb1-oam-ip
107         network: jsa_net1
108       requirements:
109       - binding:
110           capability: tosca.capabilities.network.Bindable
111           node: FSB1_template
112           relationship: tosca.relationships.network.BindsTo
113       - link:
114           capability: tosca.capabilities.network.Linkable
115           node: jsa_net1
116           relationship: tosca.relationships.network.LinksTo
117     jsa_net1:
118       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
119       properties:
120         shared: true
121         network_name:
122          get_attribute:
123           - FSB1_Internal1
124           - network_id
125         dhcp_agent_ids:
126          get_attribute:
127           - FSB1_template
128           - addresses
129         tenant_id:
130          get_attribute:
131           - FSB2_Internal2
132           - network_id
133         qos_policy:
134          get_attribute:
135           - FSB2_Internal2
136           - network_id
137     FSB1_template:
138       type: org.openecomp.resource.vfc.nodes.heat.FSB
139       properties:
140         flavor:
141           get_input: fsb-flavor
142         image:
143           get_input: fsb-image
144         admin_pass: STATIC-DATA-FSB1
145         availability_zone:
146           get_input: fsb1_zone
147         metadata:
148           write_files:
149           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
150           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
151         name:
152           get_input: fsb1-name
153       artifacts:
154         nimbus-ethernet-gw:
155           type: tosca.artifacts.Deployment
156           file: ../Artifacts/nimbus-ethernet-gw
157         nimbus-ethernet:
158           type: tosca.artifacts.Deployment
159           file: ../Artifacts/nimbus-ethernet
160       requirements:
161       - dependency:
162           capability: tosca.capabilities.Node
163           node: packet_mirror_network
164           relationship: tosca.relationships.DependsOn
165     packet_mirror_network:
166       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
167       properties:
168         network_name:
169           get_input: packet_mirror_network_name
170   groups:
171     ep-jsa_net_group:
172       type: org.openecomp.groups.heat.HeatStack
173       properties:
174         heat_file: ../Artifacts/ep-jsa_net.yaml
175         description: |
176           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
177       members:
178       - FSB2_Internal2
179       - FSB1_Internal1
180       - FSB1_OAM
181       - FSB1_template
182       - packet_mirror_network_name