[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 / 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   p1:
13     type: string
14     description: UID of OAM network
15   p2:
16     type: string
17     description: UID of OAM network
18   security_group_name:
19     type: comma_delimited_list
20     description: CMAUI1, CMAUI2 server names
21   cmaui_names:
22     type: comma_delimited_list
23     description: CMAUI1, CMAUI2 server names
24   cmaui_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   cmaui_oam_ips:
35       type: string
36   lb_st_vlan_type_oam:
37     description: dummy
38     type: string
39   mac_address:
40     type: string
41   virtual_ip_address:
42     type: string
43   virtual_ipv6_address:
44     type: string
45   vlan_ids:
46     type: string
47   subinterface_name_prefix:
48     type: string
49   subinterface_instance_index:
50     type: number
51 resources:
52
53   template_VMInt_OAM_lb_3:
54     type: OS::ContrailV2::VirtualMachineInterface
55     properties:
56       virtual_machine_interface_properties:
57         {
58           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
59         }
60       virtual_network_refs: [{ get_param: p1 }]
61       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
62       security_group_refs: [{ get_param: oam_sec_group_name}]
63
64   template_VMInt_OAM_lb_4:
65     type: OS::ContrailV2::VirtualMachineInterface
66     properties:
67       virtual_machine_interface_properties:
68         {
69           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
70         }
71       virtual_network_refs: [{ get_param: p2 },{ get_param: p1 }]
72       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
73       security_group_refs: [{ get_param: oam_sec_group_name}]
74
75   template_Vlan_2:
76     type: OS::ContrailV2::VirtualMachineInterface
77     properties:
78       name:
79         str_replace:
80           template: $NAME$VLAN
81           params:
82             $NAME: { get_param: subinterface_name_prefix }
83             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
84       virtual_machine_interface_properties:
85         {
86           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
87         }
88       virtual_machine_interface_mac_addresses:
89         {
90         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
91         }
92       virtual_machine_interface_allowed_address_pairs:
93         {
94         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
95             {
96               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
97               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
98               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
99               {
100                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
101                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
102               }
103             },
104             {
105               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
106               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
107               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
108               {
109                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
110                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
111               }
112             }
113           ]
114         }
115       virtual_network_refs: [{ get_param: p2 },{ get_param: p1 }]
116       virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_4 }]
117
118   server_cmaui:
119     type: OS::Nova::Server
120     properties:
121       name: { get_param: [cmaui_names, 0]}
122       image: { get_param: cmaui_image }
123       availability_zone: { get_param: availability_zone_0 }
124       flavor: { get_param: cmaui_flavor }
125       networks:
126       - port: { get_resource: template_VMInt_OAM_lb_3 }
127       - port: { get_resource: template_VMInt_OAM_lb_4 }
128
129   test_nested3Level:
130     type: OS::Heat::ResourceGroup
131     properties:
132       count: 3
133       resource_def:
134         type: nested3.yml
135         properties:
136           p1: { get_param: p1}
137           p2: { get_param: p1}
138           indx: "%index%"