[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 / VlanToNetConnection / nestedMultiLevels / inputfiles / nested4.yml
1 heat_template_version: 2013-05-23
2
3 description: nested4
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   p1:
13     type: string
14     description: UID of OAM network
15   p2:
16     type: string
17   security_group_name:
18     type: comma_delimited_list
19     description: CMAUI1, CMAUI2 server names
20   cmaui_names:
21     type: comma_delimited_list
22     description: CMAUI1, CMAUI2 server names
23   cmaui_image:
24     type: string
25     description: Image for CMAUI server
26   availability_zone_0:
27     type: string
28     label: availabilityzone name
29     description: availabilityzone name
30   cmaui_flavor:
31     type: string
32     description: Flavor for CMAUI server
33   cmaui_oam_ips:
34       type: string
35   lb_st_vlan_type_oam:
36     description: dummy
37     type: string
38   mac_address:
39     type: string
40   virtual_ip_address:
41     type: string
42   virtual_ipv6_address:
43     type: string
44   vlan_ids:
45     type: string
46   subinterface_name_prefix:
47     type: string
48   subinterface_instance_index:
49     type: number
50 resources:
51
52   template_VMInt_OAM_lb_7:
53     type: OS::ContrailV2::VirtualMachineInterface
54     properties:
55       virtual_machine_interface_properties:
56         {
57           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
58         }
59       virtual_network_refs: [{ get_param: p2 }]
60       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
61       security_group_refs: [{ get_param: oam_sec_group_name}]
62
63   template_VMInt_OAM_lb_8:
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_param: p1 }]
71       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
72       security_group_refs: [{ get_param: oam_sec_group_name}]
73
74   template_Vlan_4:
75     type: OS::ContrailV2::VirtualMachineInterface
76     properties:
77       name:
78         str_replace:
79           template: $NAME$VLAN
80           params:
81             $NAME: { get_param: subinterface_name_prefix }
82             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
83       virtual_machine_interface_properties:
84         {
85           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
86         }
87       virtual_machine_interface_mac_addresses:
88         {
89         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
90         }
91       virtual_machine_interface_allowed_address_pairs:
92         {
93         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
94             {
95               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
96               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
97               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
98               {
99                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
100                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
101               }
102             },
103             {
104               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
105               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
106               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
107               {
108                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
109                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
110               }
111             }
112           ]
113         }
114       virtual_network_refs: [{ get_param: p1 }]
115       virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_8 }]
116
117   server_cmaui:
118     type: OS::Nova::Server
119     properties:
120       name: { get_param: [cmaui_names, 0]}
121       image: { get_param: cmaui_image }
122       availability_zone: { get_param: availability_zone_0 }
123       flavor: { get_param: cmaui_flavor }
124       networks:
125       - port: { get_resource: template_VMInt_OAM_lb_7 }
126       - port: { get_resource: template_VMInt_OAM_lb_8 }