[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 / nested1.yml
1 heat_template_version: 2013-05-23
2
3 description: nested1
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_1:
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_Vlan_1:
65     type: OS::ContrailV2::VirtualMachineInterface
66     properties:
67       name:
68         str_replace:
69           template: $NAME$VLAN
70           params:
71             $NAME: { get_param: subinterface_name_prefix }
72             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
73       virtual_machine_interface_properties:
74         {
75           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
76         }
77       virtual_machine_interface_mac_addresses:
78         {
79         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
80         }
81       virtual_machine_interface_allowed_address_pairs:
82         {
83         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
84             {
85               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
86               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
87               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
88               {
89                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
90                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
91               }
92             },
93             {
94               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
95               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
96               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
97               {
98                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
99                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
100               }
101             }
102           ]
103         }
104       virtual_network_refs: [{ get_param: p1 }]
105       virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_1 }]
106
107   template_VMInt_OAM_lb_2:
108     type: OS::ContrailV2::VirtualMachineInterface
109     properties:
110       virtual_machine_interface_properties:
111         {
112           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
113         }
114       virtual_network_refs: [{ get_param: p2 },{ get_param: p1 }]
115       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
116       security_group_refs: [{ get_param: oam_sec_group_name}]
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_1 }
127       - port: { get_resource: template_VMInt_OAM_lb_2 }
128
129   test_nested2Level:
130     type: nested2.yml
131     properties:
132       p1: { get_param: p1}
133       p2: { get_param: p2}