[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 / VMInterfaceToNettworkConnection / sharedNestedMultiLevels / inputfiles / nested1.yml
1 heat_template_version: 2013-05-23
2
3 description: nested1
4
5 parameters:
6   lb_st_interface_type_oam:
7     type: string
8   template_PortTuple_LB1:
9     type: string
10   oam_sec_group_name:
11     type: string
12   shared_test_net:
13     type: string
14     description: UID of OAM network
15   p2:
16     type: string
17     description: UID of OAM network
18   security_group_name:
19     type: comma_delimited_list
20     description: CMAUI1, CMAUI2 server names
21   cmaui_names:
22     type: comma_delimited_list
23     description: CMAUI1, CMAUI2 server names
24   cmaui_image:
25     type: string
26     description: Image for CMAUI server
27   availability_zone_0:
28     type: string
29     label: availabilityzone name
30     description: availabilityzone name
31   cmaui_flavor:
32     type: string
33     description: Flavor for CMAUI server
34   cmaui_oam_ips:
35       type: string
36 resources:
37
38   template_VMInt_OAM_lb_1:
39     type: OS::ContrailV2::VirtualMachineInterface
40     properties:
41       virtual_machine_interface_properties:
42         {
43           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
44         }
45       virtual_network_refs: [{ get_param: shared_test_net }]
46       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
47       security_group_refs: [{ get_param: oam_sec_group_name}]
48
49   template_VMInt_OAM_lb_2:
50     type: OS::ContrailV2::VirtualMachineInterface
51     properties:
52       virtual_machine_interface_properties:
53         {
54           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
55         }
56       virtual_network_refs: [{ get_param: p2 },{ get_param: shared_test_net }]
57       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
58       security_group_refs: [{ get_param: oam_sec_group_name}]
59
60   template_VMInt_OAM_lb_3:
61     type: OS::ContrailV2::VirtualMachineInterface
62     properties:
63       virtual_machine_interface_properties:
64         {
65           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
66         }
67       virtual_network_refs: [{ get_param: [p2,0]}]
68       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
69       security_group_refs: [{ get_param: oam_sec_group_name}]
70
71   server_cmaui:
72     type: OS::Nova::Server
73     properties:
74       name: { get_param: [cmaui_names, 0]}
75       image: { get_param: cmaui_image }
76       availability_zone: { get_param: availability_zone_0 }
77       flavor: { get_param: cmaui_flavor }
78       networks:
79       - port: { get_resource: template_VMInt_OAM_lb_1 }
80       - port: { get_resource: template_VMInt_OAM_lb_2 }
81
82   test_nested2Level:
83     type: nested2.yml
84     properties:
85       shared_test_net: { get_param: shared_test_net}
86       p2: { get_param: p2}