[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 / shared / inputfiles / nested2.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   cmaui_names:
10     type: comma_delimited_list
11     description: CMAUI1, CMAUI2 server names
12   security_group_name:
13     type: not_important
14     description: not impotrtant
15   cmaui_image:
16     type: string
17     description: Image for CMAUI server
18   availability_zone_0:
19     type: string
20     label: availabilityzone name
21     description: availabilityzone name
22   cmaui_flavor:
23     type: string
24     description: Flavor for CMAUI server
25   cmaui_oam_ips:
26       type: string
27   abc_oam_ips:
28     type: string
29   lb_st_vlan_type_oam:
30     description: dummy
31     type: string
32   mac_address:
33     type: string
34   virtual_ip_address:
35     type: string
36   virtual_ipv6_address:
37     type: string
38   vlan_ids:
39     type: string
40   subinterface_name_prefix:
41     type: string
42   subinterface_instance_index:
43     type: number
44 resources:
45
46   cmaui_port_1:
47     type: OS::Neutron::Port
48     properties:
49       network: { get_param: p1 }
50       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
51       security_groups: [{get_param: security_group_name}]
52       replacement_policy: AUTO
53
54   template_Vlan_3:
55     type: OS::ContrailV2::VirtualMachineInterface
56     properties:
57       name:
58         str_replace:
59           template: $NAME$VLAN
60           params:
61             $NAME: { get_param: subinterface_name_prefix }
62             $VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
63       virtual_machine_interface_properties:
64         {
65           virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
66         }
67       virtual_machine_interface_mac_addresses:
68         {
69         virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
70         }
71       virtual_machine_interface_allowed_address_pairs:
72         {
73         virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
74             {
75               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
76               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
77               virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
78               {
79                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
80                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
81               }
82             },
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_ipv6_address },
89                 virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
90               }
91             }
92           ]
93         }
94       virtual_network_refs: [{ get_param: p1 }]
95       virtual_machine_interface_refs: [{ get_resource: cmaui_port_1 }]
96
97   server_cmaui:
98     type: OS::Nova::Server
99     properties:
100       name: { get_param: [cmaui_names, 0]}
101       image: { get_param: cmaui_image }
102       availability_zone: { get_param: availability_zone_0 }
103       flavor: { get_param: cmaui_flavor }
104       networks:
105       - port: { get_resource: cmaui_port_1 }