[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / inputoutputparamtype / 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.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     vipr_atm_name_0:
13       label: vipr_atm_name_0
14       hidden: false
15       immutable: false
16       type: string
17       description: vipr_atm_name_0
18     network_name:
19       label: network_name
20       hidden: false
21       immutable: false
22       type: string
23       description: network_name
24     port_name:
25       label: port_name
26       hidden: false
27       immutable: false
28       type: string
29       description: port_name
30     fsb_zone:
31       label: fsb_zone
32       hidden: false
33       immutable: false
34       type: string
35       description: fsb_zone
36     fsb1-flavor:
37       label: fsb1-flavor
38       hidden: false
39       immutable: false
40       type: string
41       description: fsb1-flavor
42     fsb1-Internal1-mac:
43       label: fsb1-flavor
44       hidden: false
45       immutable: false
46       type: string
47       description: fsb1-flavor
48
49   node_templates:
50     VMI1:
51       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
52       properties:
53         name:
54           str_replace:
55             template: VM_NAME_PORT_3
56             params:
57               VM_NAME:
58                 get_input: vipr_atm_name_0
59         virtual_network_refs:
60         - get_input: network_name
61         virtual_machine_interface_properties:
62           service_interface_type: left
63         port_tuple_refs:
64         - get_input: port_name
65     FSB1:
66       type: org.openecomp.resource.vfc.nodes.heat.FSB1
67       properties:
68         flavor:
69           get_input: fsb1-flavor
70         availability_zone:
71           get_input: fsb_zone
72         name:
73           get_attribute:
74           - VMI1
75           - name
76     FSB1_Port1:
77       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
78       properties:
79         mac_address:
80           get_input: fsb1-Internal1-mac
81         network: Internal1-net
82       requirements:
83       - binding:
84           capability: tosca.capabilities.network.Bindable
85           node: FSB1
86           relationship: tosca.relationships.network.BindsTo
87
88     cmaui_volume_test_compute_properties:
89       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
90       properties:
91         availability_zone:  {get_attribute: [FSB1, availability_zone ] }
92         backup_id:  {get_attribute: [FSB1, admin_pass ] }
93         description:  {get_attribute: [FSB1, flavor ] }
94         image:  {get_attribute: [FSB1, config_drive ] }
95         metadata:  {get_attribute: [FSB1, metadata ] }
96         multiattach:  {get_attribute: [FSB1, flavor_update_policy ] }
97         name:  {get_attribute: [FSB1, image ] }
98         read_only:  {get_attribute: [FSB1, image_update_policy ] }
99         scheduler_hints:  {get_attribute: [FSB1, key_name ] }
100         size:  {get_attribute: [FSB1, diskConfig ] }
101         snapshot_id:  {get_attribute: [FSB1, name ] }
102         source_volid:  {get_attribute: [FSB1, personality ] }
103         volume_id:  {get_attribute: [FSB1, reservation_id ] }
104         volume_type:  {get_attribute: [FSB1, scheduler_hints ] }
105         delete_on_termination:  {get_attribute: [FSB1, security_groups ] }
106         volume_size:  {get_attribute: [FSB1, software_config_transport ] }
107         device_type:  {get_attribute: [FSB1, user_data_format ] }
108         disk_bus:  {get_attribute: [FSB1, user_data_update_policy ] }
109         swap_size:  {get_attribute: [FSB1, accessIPv4 ] }
110         image_id:  {get_attribute: [FSB1, accessIPv6 ] }
111         attachments:  {get_attribute: [FSB1, addresses ] }
112         encrypted:  {get_attribute: [FSB1, console_urls ] }
113         created_at:  {get_attribute: [FSB1, instance_name ] }
114         display_description:  {get_attribute: [FSB1, show ] }
115
116     cmaui_volume_test_neutron_port_properties:
117       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
118       properties:
119         availability_zone:  {get_attribute: [FSB1_Port1, ip_address ] }
120         backup_id:  {get_attribute: [FSB1_Port1, network ] }
121         #description:  {get_attribute: [FSB1_Port1, subnet ] }
122         image:  {get_attribute: [FSB1_Port1, admin_state_up ] }
123         metadata:  {get_attribute: [FSB1_Port1, allowed_address_pairs ] }
124         multiattach:  {get_attribute: [FSB1_Port1, "binding:vnic_type" ] }
125         name:  {get_attribute: [FSB1_Port1, device_id ] }
126         read_only:  {get_attribute: [FSB1_Port1, device_owner ] }
127         scheduler_hints:  {get_attribute: [FSB1_Port1, fixed_ips ] }
128         #size:  {get_attribute: [FSB1_Port1, mac_address ] }
129         snapshot_id:  {get_attribute: [FSB1_Port1, name ] }
130         source_volid:  {get_attribute: [FSB1_Port1, port_security_enabled ] }
131         volume_id:  {get_attribute: [FSB1_Port1, qos_policy ] }
132         volume_type:  {get_attribute: [FSB1_Port1, security_groups ] }
133         delete_on_termination:  {get_attribute: [FSB1_Port1, value_specs ] }
134         volume_size:  {get_attribute: [FSB1_Port1, replacement_policy ] }
135         device_type:  {get_attribute: [FSB1_Port1, show ] }
136         disk_bus:  {get_attribute: [FSB1_Port1, subnets ] }
137         swap_size:  {get_attribute: [FSB1_Port1, tenant_id ] }
138
139     cmaui_volume_test_contrailv2_VMI_properties:
140       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
141       properties:
142         availability_zone:  {get_attribute: [VMI1, virtual_machine_interface_mac_addresses ] }
143         #backup_id:  {get_attribute: [VMI1, mac_address ] }
144         description:  {get_attribute: [VMI1, virtual_network_refs ] }
145         image:  {get_attribute: [VMI1, port_tuple_refs ] }
146         metadata:  {get_attribute: [VMI1, security_group_refs ] }
147         multiattach:  {get_attribute: [VMI1, virtual_machine_interface_properties ] }
148         name:  {get_attribute: [VMI1, name ] }
149         #read_only:  {get_attribute: [VMI1, service_interface_type ] }
150         #scheduler_hints:  {get_attribute: [VMI1, sub_interface_vlan_tag ] }
151         size:  {get_attribute: [VMI1, virtual_machine_interface_allowed_address_pairs ] }
152         #snapshot_id:  {get_attribute: [VMI1, allowed_address_pair ] }
153         #source_volid:  {get_attribute: [VMI1, port_security_enabled ] }
154         #volume_id:  {get_attribute: [VMI1, address_mode ] }
155         #volume_type:  {get_attribute: [VMI1, mac ] }
156         #delete_on_termination:  {get_attribute: [VMI1, ip ] }
157         #volume_size:  {get_attribute: [VMI1, ip_prefix ] }
158         #device_type:  {get_attribute: [VMI1, ip_prefix_len ] }
159         #disk_bus:  {get_attribute: [VMI1, virtual_machine_interface_refs ] }
160         #swap_size:  {get_attribute: [VMI1, virtual_machine_interface_properties_service_interface_type ] }
161         created_at:  {get_attribute: [VMI1, fq_name ] }
162         display_description:  {get_attribute: [VMI1, show ] }
163
164   groups:
165     ep-jsa_net_group:
166       type: org.openecomp.groups.heat.HeatStack
167       properties:
168         heat_file: ../Artifacts/ep-jsa_net.yaml
169         description: |
170           Version 2.0 02-09-2016 (Authors: Paul Phillips,  pp2854 PROD)
171       members:
172       - VMI1
173       - FSB1
174       - FSB1_Port1
175       - cmaui_volume_test_compute_properties
176       - cmaui_volume_test_neutron_port_properties
177       - cmaui_volume_test_contrailv2_VMI_properties
178
179   outputs:
180     simpleOutput1:
181        value: {get_attribute: [ FSB1, accessIPv4 ] }
182     simpleOutput2:
183        value: {get_attribute: [ FSB1, addresses, key1 ] }
184     complexOutput1:
185       value: {get_attribute: [ FSB1, addresses, {get_attribute: [ FSB2_Internal2,tenant_id ] } ]}
186     complexOutput2:
187       description:  cgi fw01 left interface Mac-Address
188       value: { get_attribute: [FSB1_Port1, device_owner, get_input: [CMAUI_volume_type,{get_attribute: [FSB1,user_data_format ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }
189     complexOutput3:
190       description:  cgi fw01 left interface Mac-Address
191       value: { get_input: [a, addresses, get_input: [CMAUI_volume_type, {get_attribute: [FSB1,accessIPv6 ] }], 0, "OS-EXT-IPS-MAC:mac_addr"] }