push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / nested / inputfiles / nested.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   p1:
7     type: string
8     description: UID of OAM network
9   p2:
10     type: string
11     description: UID of OAM network
12   security_group_name:
13     type: comma_delimited_list
14     description: CMAUI1, CMAUI2 server names
15   cmaui_names:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   cmaui_image:
19     type: string
20     description: Image for CMAUI server
21   availability_zone_0:
22     type: string
23     label: availabilityzone name
24     description: availabilityzone name
25   cmaui_flavor:
26     type: string
27     description: Flavor for CMAUI server
28   cmaui_oam_ips:
29     type: string
30   oam_sec_group_name:
31     type: string
32   lb_st_interface_type_oam:
33     type: string
34   template_PortTuple_LB1:
35     type: string
36 resources:
37   template_VMInt_OAM_lb_1:
38     type: OS::ContrailV2::VirtualMachineInterface
39     properties:
40       virtual_machine_interface_properties:
41         {
42           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
43         }
44       virtual_network_refs: [{ get_param: p1 }]
45       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
46       security_group_refs: [{ get_param: oam_sec_group_name}]
47
48   template_VMInt_OAM_lb_2:
49     type: OS::ContrailV2::VirtualMachineInterface
50     properties:
51       virtual_machine_interface_properties:
52         {
53           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
54         }
55       virtual_network_refs: [{ get_param: p1 },{ get_param: p2 }]
56       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
57       security_group_refs: [{ get_param: oam_sec_group_name}]
58
59   server_cmaui:
60     type: OS::Nova::Server
61     properties:
62       name: { get_param: [cmaui_names, 0]}
63       image: { get_param: cmaui_image }
64       availability_zone: { get_param: availability_zone_0 }
65       flavor: { get_param: cmaui_flavor }
66       networks:
67       - port: { get_resource: template_VMInt_OAM_lb_1 }
68       - port: { get_resource: template_VMInt_OAM_lb_2 }