[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 / nested / inputfiles / nested.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   p1:
7     type: string
8     description: UID of OAM network
9   p2:
10     type: string
11     description: UID of OAM network
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   oam_sec_group_name:
31     type: string
32   lb_st_interface_type_oam:
33     type: string
34   template_PortTuple_LB1:
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   template_VMInt_OAM_lb_1:
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: p1 }]
60       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
61       security_group_refs: [{ get_param: oam_sec_group_name}]
62
63   template_Vlan_1:
64     type: OS::ContrailV2::VirtualMachineInterface
65     properties:
66       name:
67         str_replace:
68           template: $NAME$VLAN
69           params:
70             $NAME: { get_param: subinterface_name_prefix }
71             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
72       virtual_machine_interface_properties:
73         {
74           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
75         }
76       virtual_machine_interface_mac_addresses:
77         {
78         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
79         }
80       virtual_machine_interface_allowed_address_pairs:
81         {
82         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
83             {
84               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
85               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
86               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
87               {
88                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
89                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
90               }
91             },
92             {
93               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
94               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
95               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
96               {
97                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
98                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
99               }
100             }
101           ]
102         }
103       virtual_network_refs: [{ get_param: p1 }]
104       virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_1 }]
105
106   template_VMInt_OAM_lb_2:
107     type: OS::ContrailV2::VirtualMachineInterface
108     properties:
109       virtual_machine_interface_properties:
110         {
111           virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
112         }
113       virtual_network_refs: [{ get_param: p1 },{ get_param: p2 }]
114       port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
115       security_group_refs: [{ get_param: oam_sec_group_name}]
116
117   template_Vlan_2:
118     type: OS::ContrailV2::VirtualMachineInterface
119     properties:
120       name:
121         str_replace:
122           template: $NAME$VLAN
123           params:
124             $NAME: { get_param: subinterface_name_prefix }
125             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
126       virtual_machine_interface_properties:
127         {
128           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
129         }
130       virtual_machine_interface_mac_addresses:
131         {
132         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
133         }
134       virtual_machine_interface_allowed_address_pairs:
135         {
136         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
137             {
138               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
139               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
140               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
141               {
142                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
143                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
144               }
145             },
146             {
147               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
148               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
149               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
150               {
151                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
152                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
153               }
154             }
155           ]
156         }
157       virtual_network_refs: [{ get_param: p1 },{ get_param: p2 }]
158       virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_2 }]
159
160   server_cmaui:
161     type: OS::Nova::Server
162     properties:
163       name: { get_param: [cmaui_names, 0]}
164       image: { get_param: cmaui_image }
165       availability_zone: { get_param: availability_zone_0 }
166       flavor: { get_param: cmaui_flavor }
167       networks:
168       - port: { get_resource: template_VMInt_OAM_lb_1 }
169       - port: { get_resource: template_VMInt_OAM_lb_2 }