[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 / subInterfaceToInterfaceConnection / nestedMultiLevels / inputfiles / main.yml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: Paul Phillips, pnet2854 PROD)
5
6 parameters:
7   jsa_net_name:
8     type: string
9   jsa_name:
10     type: string
11     description: network name of jsa log network
12   contrail_net_name:
13     type: string
14     description: network name of jsa log network
15   security_group_name:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   cmaui_names:
19     type: comma_delimited_list
20     description: CMAUI1, CMAUI2 server names
21   cmaui_image:
22     type: string
23     description: Image for CMAUI server
24   availability_zone_0:
25     type: string
26     label: availabilityzone name
27     description: availabilityzone name
28   cmaui_flavor:
29     type: string
30     description: Flavor for CMAUI server
31   cmaui_oam_ips:
32     type: string
33   oam_sec_group_name:
34     type: string
35   lb_st_interface_type_oam:
36     type: string
37   template_PortTuple_LB1:
38     type: string
39
40 resources:
41   test_net1:
42     type: OS::Neutron::Net
43     properties:
44       name: {get_param: jsa_net_name}
45       shared: True
46
47   test_contrailV2_net2:
48     type: OS::ContrailV2::VirtualNetwork
49     properties:
50       name: { get_param: contrail_net_name }
51
52   server_cmaui_nova:
53     type: OS::Nova::Server
54     properties:
55       name: { get_param: [cmaui_names, 0]}
56       image: { get_param: cmaui_image }
57       availability_zone: { get_param: availability_zone_0 }
58       flavor: { get_param: cmaui_flavor }
59       networks:
60       - port: { get_resource: template_VMInt_OAM_lb_1 }
61       - port: { get_resource: cmaui_port_2 }
62
63   template_VMInt_OAM_lb_1:
64     type: OS::ContrailV2::VirtualMachineInterface
65     properties:
66       virtual_machine_interface_properties:
67         {
68           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
69         }
70       virtual_network_refs: [{ get_resource: test_net1 }]
71       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
72       security_group_refs: [{ get_param: oam_sec_group_name}]
73
74   cmaui_port_2:
75     type: OS::Neutron::Port
76     properties:
77       network: { get_resource: test_net1 }
78       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
79       security_groups: [{get_param: security_group_name}]
80       replacement_policy: AUTO
81
82   test_nested1Level:
83     type: nested1.yml
84     properties:
85       net1: { get_resource: test_net1}
86       net2: { get_attr: [ test_contrailV2_net2, fq_name ] }
87       port1: { get_resource: template_VMInt_OAM_lb_1}
88       port2: { get_resource: cmaui_port_2}
89
90   test_resourceGroup:
91     type: OS::Heat::ResourceGroup
92     properties:
93       count: 9
94       resource_def:
95         type: nested3.yml
96         properties:
97           net1: { list_join: [':', { get_attr: [ test_contrailV2_net2, fq_name ] } ] }
98           port1: { get_resource: cmaui_port_2 }
99           indx: "%index%"
100
101   test_nestedInvalidConnection:
102     type: nested1.yml
103     properties:
104       net1: { get_resource: server_cmaui_nova }
105       port1: { get_resource: server_cmaui_nova }