push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / shared / inputfiles / nested1.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   shared_network_id1:
7     type: string
8     description: UID of OAM network
9   p2:
10     type: string
11     description: UID of OAM network
12   cmaui_names:
13     type: comma_delimited_list
14     description: CMAUI1, CMAUI2 server names
15   abc_names:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   security_group_name:
19     type: not_important
20     description: not impotrtant
21   cmaui_image:
22     type: string
23     description: Image for CMAUI server
24   abc_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   abc_flavor:
35     type: string
36     description: Flavor for CMAUI server
37   cmaui_oam_ips:
38     type: string
39   abc_oam_ips:
40     type: string
41   oam_sec_group_name:
42     type: string
43   lb_st_interface_type_oam:
44     type: string
45   template_PortTuple_LB1:
46     type: string
47 resources:
48
49   template_VMInt_OAM_lb_1:
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: shared_network_id1 }]
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_2:
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 }]
68       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
69       security_group_refs: [{ get_param: oam_sec_group_name}]
70
71   template_VMInt_OAM_lb_3:
72     type: OS::ContrailV2::VirtualMachineInterface
73     properties:
74       virtual_machine_interface_properties:
75         {
76           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
77         }
78       virtual_network_refs: [{ get_param: p2 },{ get_param: shared_network_id1 }]
79       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
80       security_group_refs: [{ get_param: oam_sec_group_name}]
81
82   abc_port_1:
83     type: OS::Neutron::Port
84     properties:
85       network: { get_param: p2 }
86       fixed_ips: [{"ip_address": {get_param: [abc_oam_ips, 0]}}]
87       security_groups: [{get_param: security_group_name}]
88       replacement_policy: AUTO
89
90   server_cmaui:
91     type: OS::Nova::Server
92     properties:
93       name: { get_param: [cmaui_names, 0]}
94       image: { get_param: cmaui_image }
95       availability_zone: { get_param: availability_zone_0 }
96       flavor: { get_param: cmaui_flavor }
97       networks:
98       - port: { get_resource: template_VMInt_OAM_lb_1 }
99       - port: { get_resource: template_VMInt_OAM_lb_2 }
100       - port: { get_resource: template_VMInt_OAM_lb_3 }
101
102   server_abc:
103     type: OS::Nova::Server
104     properties:
105       name: { get_param: [abc_names, 0]}
106       image: { get_param: abc_image }
107       availability_zone: { get_param: availability_zone_0 }
108       flavor: { get_param: abc_flavor }
109       networks:
110       - port: { get_resource: abc_port_1 }