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