push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / multiple_resource_groups / inputs / mvs.vfmodule.heat.yaml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Metaswitch MVS (Metaview Server)
5
6 parameters:
7   cloud_zone_id:
8     type: string
9     description: The cloud zone for this VF instance
10   vf_name:
11     type: string
12     description: The VF Name; defaults to VMVM for the virtual MVM VNF.
13     constraints:
14       - allowed_pattern: "[a-zA-Z0-9]+"
15       - length: { min: 4, max: 4 }
16         description: Each VF will have a 4-character alphanumeric identifier
17   vf_instance_num:
18     type: string
19     description: The number for this VF instance
20     constraints:
21       - allowed_pattern: "[0-9]+"
22       - length: { min: 2, max: 2 }
23         description: VF instance number must be a two-digit numeric value
24   vf_component:
25     type: string
26     description: The component that this VF instance is running
27     constraints:
28       - allowed_pattern: "[a-zA-Z0-9]+"
29       - length: { min: 3, max: 3 }
30         description: Each VF component will have a 3-character alphanumeric identifier
31   vm_instance_num:
32     type: comma_delimited_list
33     description: VM instance number list must be a list of three-digit numeric value
34   vnf_id:
35     type: string
36     description: Unique ID for this VF instance
37   vf_module_id:
38     type: string
39     description: Unique ID for this VF_MODULE instance
40   bootimage:
41     type: string
42     description: Master bootimage volume id
43   flavor:
44     type: string
45     description: Server flavor
46     constraints:
47       - custom_constraint: nova.flavor
48   key_name:
49     type: string
50     description: SSH key name
51     constraints:
52       - custom_constraint: nova.keypair
53
54   availability_zone_0:
55     type: comma_delimited_list
56     description: List of Availability Zone IDs or Names
57
58   sec_groups:
59     type: comma_delimited_list
60     description: Security groups
61   mgmt_net_id:
62     type: string
63     description: Neutron UUID for the Management network
64     constraints:
65     - custom_constraint: neutron.network
66   virtual_mgmt_ip_0:
67     type: string
68     description: Virtual management network ip address
69
70   mvs_mgmt_ip_0:
71     type: comma_delimited_list
72     description: List of Management network IP addresses for IPv4
73
74   num_instances:
75     type: number
76     description: number of instance of the VF_module
77
78 resources:
79   mvs_modules:
80     type: OS::Heat::ResourceGroup
81     properties:
82       count: { get_param: num_instances }
83       resource_def:
84         type: mvs.nested.heat.yaml
85         properties:
86           cloud_zone_id: { get_param: cloud_zone_id }
87           vf_name:  { get_param: vf_name }
88           vf_instance_num: { get_param: vf_instance_num }
89           vf_component: { get_param: vf_component }
90           vm_instance_num: { get_param: vm_instance_num }
91           vnf_id: { get_param: vnf_id }
92           vf_module_id: { get_param: vf_module_id }
93           bootimage: { get_param: bootimage }
94           flavor: { get_param: flavor }
95           key_name: { get_param: key_name }
96
97           availability_zone_0: { get_param: availability_zone_0 }
98
99           sec_groups: { get_param: sec_groups }
100           mgmt_net_id: { get_param: mgmt_net_id }
101           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
102
103           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
104
105           indx: "%index%"
106   mvs_modules_same_nested_heat_file_no_count:
107     type: OS::Heat::ResourceGroup
108     properties:
109       resource_def:
110         type: mvs.nested.heat.yaml
111         properties:
112           cloud_zone_id: { get_param: cloud_zone_id }
113           vf_name:  { get_param: vf_name }
114           vf_instance_num: { get_param: vf_instance_num }
115           vf_component: { get_param: vf_component }
116           vm_instance_num: { get_param: vm_instance_num }
117           vnf_id: { get_param: vnf_id }
118           vf_module_id: { get_param: vf_module_id }
119           bootimage: { get_param: bootimage }
120           flavor: { get_param: flavor }
121           key_name: { get_param: key_name }
122
123           availability_zone_0: { get_param: availability_zone_0 }
124
125           sec_groups: { get_param: sec_groups }
126           mgmt_net_id: { get_param: mgmt_net_id }
127           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
128
129           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
130
131           indx: "%index%"
132   shouldnt_get_translated:
133     type: OS::Heat::ResourceGroup
134     properties:
135       count: { get_param: num_instances }
136       resource_def:
137         type: OS::Nova::Server
138         properties:
139           cloud_zone_id: { get_param: cloud_zone_id }
140           vf_name:  { get_param: vf_name }
141           vf_instance_num: { get_param: vf_instance_num }
142           vf_component: { get_param: vf_component }
143           vm_instance_num: { get_param: vm_instance_num }
144           vnf_id: { get_param: vnf_id }
145           vf_module_id: { get_param: vf_module_id }
146           bootimage: { get_param: bootimage }
147           flavor: { get_param: flavor }
148           key_name: { get_param: key_name }
149
150           availability_zone_0: { get_param: availability_zone_0 }
151
152           sec_groups: { get_param: sec_groups }
153           mgmt_net_id: { get_param: mgmt_net_id }
154           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
155
156           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
157
158           indx: "%index%"