[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 / heatPseudoParameters / usedFromNestedHeat / inputfiles / VSR_base_hot.yaml
1 heat_template_version: 2013-05-23
2
3 parameters:
4   availability_zone_0:
5     type: string
6     description: Availability zone where this component should be instantiated
7   cpm_name_0:
8     type: string
9     description: VM name for CPM A
10   cpm_name_1:
11     type: string
12     description: VM name for CPM B
13   iom_name_0:
14     type: string
15     description: VM name for IOM 1
16   cpm_image_name:
17     type: string
18     description: Image to be used for the CPM instance
19   iom_image_name:
20     type: string
21     description: Image to be used for the IOM instance
22   cpm_flavor_name:
23     type: string
24     description: Flavor of the CPM VNF to be used
25   iom_flavor_name:
26     type: string
27     description: Flavor of the IOM VNF to be used
28   mgt_net_id:
29     type: string
30     description: Network used by the Management interface
31   mgt_subnet_id:
32     type: string
33     description: Subnet used by the Management interface
34   ctrl_fabric_net_id:
35     type: string
36     description: Network used by the control fabric interface
37   ctrl_fabric_subnet_id:
38     type: string
39     description: Subnet used by the control fabric interface
40   data0_net_id: 
41     type: string
42     description: Network used by the Data interface
43   data0_subnet_id: 
44     type: string
45     description: Subnet used by the Data interface
46   data1_net_id: 
47     type: string
48     description: Network used by the second Data interface
49   data1_subnet_id: 
50     type: string
51     description: Subnet used by the second Data interface
52   data2_net_id: 
53     type: string
54     description: Network used by the third Data interface
55   data2_subnet_id: 
56     type: string
57     description: Subnet used by the third Data interface
58   data3_net_id: 
59     type: string
60     description: Network used by the fourth Data interface
61   data3_subnet_id: 
62     type: string
63     description: Subnet used by the fourth Data interface
64   cpmaSlot:
65     type: string
66     description: The slot value assigned to CPMA
67   cpmbSlot:
68     type: string
69     description: The slot value assigned to CPMB
70   iom1Slot:
71     type: string
72     description: The slot value assigned to IOM1
73   cpm_mgt_gw_ip:
74     type: string
75     description: Default Gateway for the Management Interface, set during boot time
76   cpm_mgt_ip_0:
77     type: string
78     description: Fixed IP that will be used by the Management Interface on CPMA
79   cpm_mgt_ip_1:
80     type: string
81     description: Fixed IP that will be used by the Management Interface on CPMB
82   cpm_mgt_cidr:
83     type: string
84     description: Management network to be used by CPM
85   stack_name:
86     type: string
87     description: Name of the HEAT stack
88   cpm_smbios:
89     type: string
90     description: Parameters to be passed to the CPM at boot up as key-value pairs
91   iom_smbios:
92     type: string
93     description: Parameters to be passed to the IOM at boot up as key-value pairs
94   ctrl_fabric_cidr:
95     type: string
96     description: CIDR of Control Fabric Network
97   cpm_mtu:
98     type: string
99     description: MTU size in bytes
100   iom_mtu:
101     type: string
102     description: MTU size in bytes    
103   vnf_id:
104     type: string
105     description: VNF ID
106   vf_module_id:
107     type: string
108     description: VF Module ID
109
110
111 resources:
112   sec_group:
113     type: "OS::Neutron::SecurityGroup"
114     properties:
115       description: Security group for vSR
116       name: vsr_security_group
117       rules:
118       - remote_ip_prefix: 0.0.0.0/0
119         protocol: tcp
120         port_range_min: 22
121         port_range_max: 22
122       - remote_ip_prefix: 0.0.0.0/0
123         protocol: icmp
124         direction: ingress
125
126   CPMA:
127     type: VSR_CPM_base_template_nested.yaml
128     properties:
129       stack_name: { get_param: "OS::stack_name" }
130       vnf_id: { get_param: "vnf_id" }
131       vm_name: { get_param: "cpm_name_0" }
132       vf_module_id: { get_param: "vf_module_id" }
133       cpm_image_name: { get_param: cpm_image_name }
134       cpm_flavor_name: { get_param: cpm_flavor_name }
135       mgt_net_id:  { get_param: mgt_net_id }
136       mgt_subnet_id:  { get_param: mgt_subnet_id }
137       ctrl_fabric_net_id: { get_param: ctrl_fabric_net_id }
138       ctrl_fabric_subnet_id: { get_param: ctrl_fabric_subnet_id }
139       cpm_mgt_ip: { get_param: cpm_mgt_ip_0 }
140       cpm_mgt_cidr: { get_param: cpm_mgt_cidr }
141       cpm_smbios:
142         str_replace:
143           template: { get_param: cpm_smbios }
144           params:
145             $slt: { get_param: cpmaSlot }
146             $adrp: { get_param: cpm_mgt_ip_0 }
147             $adrs: { get_param: cpm_mgt_ip_1 }
148             $oamGw: { get_param: cpm_mgt_gw_ip }
149       availability_zone_0: { get_param: availability_zone_0 }
150       security_group: { get_resource: sec_group }
151       cpm_slot: { get_param: cpmaSlot }
152       cpm_mtu: { get_param: cpm_mtu }
153   CPMB:
154     type: VSR_CPM_base_template_nested.yaml
155     properties:
156       stack_name: { get_param: "OS::stack_name" }
157       vnf_id: { get_param: "vnf_id" }
158       vm_name: { get_param: "cpm_name_1" }
159       vf_module_id: { get_param: "vf_module_id" }
160       cpm_image_name: { get_param: cpm_image_name }
161       cpm_flavor_name: { get_param: cpm_flavor_name }
162       mgt_net_id:  { get_param: mgt_net_id }
163       mgt_subnet_id:  { get_param: mgt_subnet_id }
164       ctrl_fabric_net_id: { get_param: ctrl_fabric_net_id }
165       ctrl_fabric_subnet_id: { get_param: ctrl_fabric_subnet_id }
166       cpm_mgt_ip: { get_param: cpm_mgt_ip_1 }
167       cpm_mgt_cidr: { get_param: cpm_mgt_cidr }
168       cpm_smbios:
169         str_replace:
170           template: { get_param: cpm_smbios }
171           params:
172             $slt: { get_param: cpmbSlot }
173             $adrp: { get_param: cpm_mgt_ip_0 }
174             $adrs: { get_param: cpm_mgt_ip_1 }
175             $oamGw: { get_param: cpm_mgt_gw_ip }
176       availability_zone_0: { get_param: availability_zone_0 }
177       security_group: { get_resource: sec_group }
178       cpm_slot: { get_param: cpmbSlot }
179       cpm_mtu: { get_param: cpm_mtu }
180   IOM1:
181     type: VSR_IOM_template_nested.yaml
182     properties:
183       stack_name: { get_param: "OS::stack_name" }
184       vnf_id: { get_param: "vnf_id" }
185       vm_name: { get_param: "iom_name_0" }
186       vf_module_id: { get_param: "vf_module_id" }
187       iom_image_name: { get_param: iom_image_name }
188       iom_flavor_name: { get_param: iom_flavor_name }
189       mgt_net_id:  { get_param: mgt_net_id }
190       mgt_subnet_id:  { get_param: mgt_subnet_id }
191       ctrl_fabric_net_id: { get_param: ctrl_fabric_net_id }
192       ctrl_fabric_subnet_id: { get_param: ctrl_fabric_subnet_id }
193       data0_net_id: { get_param: data0_net_id }
194       data0_subnet_id:  { get_param: data0_subnet_id }
195       data1_net_id: { get_param: data1_net_id }
196       data1_subnet_id:  { get_param: data1_subnet_id }
197       data2_net_id: { get_param: data2_net_id }
198       data2_subnet_id:  { get_param: data2_subnet_id }
199       data3_net_id: { get_param: data3_net_id }
200       data3_subnet_id:  { get_param: data3_subnet_id }
201       iom_smbios:
202         str_replace:
203           template: { get_param: iom_smbios }
204           params:
205             $slt: { get_param: iom1Slot }
206       availability_zone_0: { get_param: availability_zone_0 }
207       security_group: { get_resource: sec_group }
208       iom_slot: { get_param: iom1Slot }
209       iom_mtu: { get_param: iom_mtu }