push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / resource_group / 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   type_name:
54     type: string
55   availability_zone_0:
56     type: comma_delimited_list
57     description: List of Availability Zone IDs or Names
58
59   sec_groups:
60     type: comma_delimited_list
61     description: Security groups
62   mgmt_net_id:
63     type: string
64     description: Neutron UUID for the Management network
65     constraints:
66     - custom_constraint: neutron.network
67   virtual_mgmt_ip_0:
68     type: string
69     description: Virtual management network ip address
70
71   mvs_mgmt_ip_0:
72     type: comma_delimited_list
73     description: List of Management network IP addresses for IPv4
74
75   num_instances:
76     type: number
77     description: number of instance of the VF_module
78
79   compute_image_name:
80     type: string
81
82 resources:
83   mvs_modules:
84     type: OS::Heat::ResourceGroup
85     properties:
86       count: 3
87       resource_def:
88         type: mvs.nested.heat.yaml
89         properties:
90           cloud_zone_id: { get_param: cloud_zone_id }
91           vf_name:  { get_param: vf_name }
92           vf_instance_num: { get_param: vf_instance_num }
93           vf_component: { get_param: vf_component }
94           vm_instance_num: { get_param: vm_instance_num }
95           vnf_id: { get_param: vnf_id }
96           vf_module_id: { get_param: vf_module_id }
97           bootimage: { get_param: bootimage }
98           flavor: { get_param: flavor }
99           key_name: { get_param: key_name }
100           availability_zone_0: { get_param: availability_zone_0 }
101           sec_groups: { get_param: sec_groups }
102           mgmt_net_id: { get_param: mgmt_net_id }
103           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
104           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
105           indx: "%index%"
106
107   not_supported_resourceGroup1:
108     type: OS::Heat::ResourceGroup
109     properties:
110       count: 3
111       resource_def:
112         type: OS::Heat::ResourceGroup
113         properties:
114           cloud_zone_id: { get_param: cloud_zone_id }
115           vf_name:  { get_param: vf_name }
116           vf_instance_num: { get_param: vf_instance_num }
117           vf_component: { get_param: vf_component }
118           vm_instance_num: { get_param: vm_instance_num }
119           vnf_id: { get_param: vnf_id }
120           vf_module_id: { get_param: vf_module_id }
121           bootimage: { get_param: bootimage }
122           flavor: { get_param: flavor }
123           key_name: { get_param: key_name }
124           availability_zone_0: { get_param: availability_zone_0 }
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           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
129           indx: "%index%"
130
131   not_supported_resourceGroup2:
132     type: OS::Heat::ResourceGroup
133     properties:
134       count: 3
135       resource_def:
136         type: { get_param: type_name }
137         properties:
138           cloud_zone_id: { get_param: cloud_zone_id }
139           vf_name:  { get_param: vf_name }
140           vf_instance_num: { get_param: vf_instance_num }
141           vf_component: { get_param: vf_component }
142           vm_instance_num: { get_param: vm_instance_num }
143           vnf_id: { get_param: vnf_id }
144           vf_module_id: { get_param: vf_module_id }
145           bootimage: { get_param: bootimage }
146           flavor: { get_param: flavor }
147           key_name: { get_param: key_name }
148           availability_zone_0: { get_param: availability_zone_0 }
149           sec_groups: { get_param: sec_groups }
150           mgmt_net_id: { get_param: mgmt_net_id }
151           virtual_mgmt_ip_0: { get_param: virtual_mgmt_ip_0 }
152           mvs_mgmt_ip_0: { get_param: mvs_mgmt_ip_0 }
153           indx: "%index%"
154
155   server_compute_get_attr_test:
156     type: OS::Nova::Server
157     properties:
158       config_drive: {get_attr: [mvs_modules]}
159       name:  compute_name
160       image: { get_param: compute_image_name }
161       flavor:  compute_flavor_name
162       user_data_format: { get_attr: [mvs_modules , resource.1.vnfci_id_1] }
163       user_data: { get_attr: [mvs_modules, resource.vnfci_id_2]}