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