[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 / subInterfaceToInterfaceConnection / nestedMultiLevels / inputfiles / nested2.yml
1 heat_template_version: 2013-05-23
2
3 description: nested2
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   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   lb_st_vlan_type_oam:
31     description: dummy
32     type: string
33   mac_address:
34     type: string
35   virtual_ip_address:
36     type: string
37   virtual_ipv6_address:
38     type: string
39   vlan_ids:
40     type: string
41   subinterface_name_prefix:
42     type: string
43   subinterface_instance_index:
44     type: number
45   net1:
46     type: string
47   net2:
48     type: string
49   port1:
50     type: string
51   port2:
52     type: string
53   indx:
54     type: number
55 resources:
56
57   template_Vlan_3:
58     type: OS::ContrailV2::VirtualMachineInterface
59     properties:
60       name:
61         str_replace:
62           template: $NAME$VLAN
63           params:
64             $NAME: { get_param: subinterface_name_prefix }
65             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
66       virtual_machine_interface_properties:
67         {
68           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
69         }
70       virtual_machine_interface_mac_addresses:
71         {
72         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
73         }
74       virtual_machine_interface_allowed_address_pairs:
75         {
76         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
77             {
78               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
79               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
80               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
81               {
82                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
83                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
84               }
85             },
86             {
87               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
88               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
89               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
90               {
91                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
92                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
93               }
94             }
95           ]
96         }
97       virtual_network_refs: [{ get_param: net2 },{ get_param: net1 }]
98       virtual_machine_interface_refs: [{ get_param: port1 }, { get_param: port2 }]
99
100   template_Vlan_4:
101     type: OS::ContrailV2::VirtualMachineInterface
102     properties:
103       name:
104         str_replace:
105           template: $NAME$VLAN
106           params:
107             $NAME: { get_param: subinterface_name_prefix }
108             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
109       virtual_machine_interface_properties:
110         {
111           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
112         }
113       virtual_machine_interface_mac_addresses:
114         {
115         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
116         }
117       virtual_machine_interface_allowed_address_pairs:
118         {
119         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
120             {
121               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
122               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
123               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
124               {
125                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
126                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
127               }
128             },
129             {
130               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
131               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
132               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
133               {
134                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
135                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
136               }
137             }
138           ]
139         }
140       virtual_network_refs: [{ get_param: net2 }]
141       virtual_machine_interface_refs: [{ get_param: port1 }]
142
143   test_nested3Level:
144     type: OS::Heat::ResourceGroup
145     properties:
146       count: 3
147       resource_def:
148         type: nested3.yml
149         properties:
150           net1: { get_param: net1}
151           net2: { get_param: net1}
152           port1: { get_param: port1}
153           port2: { get_param: port1}
154           indx: "%index%"