[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 / usedFromMainHeat / inputfiles / VSR_IOM_template_nested.yaml
1 heat_template_version: 2013-05-23
2
3 parameters:
4
5   stack_name:
6     type: string
7     description: Name of the HEAT stack
8   availability_zone_0:
9     type: string
10     description: Availability zone where this component should be instantiated
11   iom_image_name:
12     type: string
13     description: Image to be used for the instance
14   iom_flavor_name:
15     type: string
16     description: Flavor of the VNF to be used
17   mgt_net_id:
18     type: string
19     description: Network used by the Management interface
20   mgt_subnet_id:
21     type: string
22     description: Subnet used by the Management interface
23   ctrl_fabric_net_id: 
24     type: string
25     description: Network used by the Control Fabric interface
26   ctrl_fabric_subnet_id: 
27     type: string
28     description: Subnet used by the Control Fabric interface
29   data0_net_id: 
30     type: string
31     description: Network used by the Data interface
32   data0_subnet_id: 
33     type: string
34     description: Subnet used by the Data interface
35   data1_net_id: 
36     type: string
37     description: Network used by the second Data interface
38   data1_subnet_id: 
39     type: string
40     description: Subnet used by the second Data interface
41   data2_net_id: 
42     type: string
43     description: Network used by the third Data interface
44   data2_subnet_id: 
45     type: string
46     description: Subnet used by the third Data interface
47   data3_net_id: 
48     type: string
49     description: Network used by the fourth Data interface
50   data3_subnet_id: 
51     type: string
52     description: Subnet used by the fourth Data interface
53   security_group:
54     type: string
55     description: Security group to be used
56   iom_smbios:
57     type: string
58     description: Parameters to be passed to the VM at boot up as key-value pairs
59   iom_slot:
60     type: string
61     description: The slot value assigned to the module eg 1, 2, 3, etc
62   iom_mtu:
63     type: string
64     description: MTU size in bytes
65   vnf_id:
66     type: string
67     description: VNF ID
68   vm_name:
69     type: string
70     description: Name of the VM
71   vf_module_id:
72     type: string
73     description: VNF Module ID
74
75 resources: 
76   iom_mgt_0_port:
77     type: OS::Neutron::Port
78     properties:
79       network_id: { get_param: mgt_net_id }
80       security_groups: [ { get_param: security_group} ]
81       fixed_ips: [ { subnet_id: { get_param: mgt_subnet_id } } ]
82
83   iom_ctrl_fabric_0_port:
84     type: OS::Neutron::Port
85     properties:
86       network_id: { get_param: ctrl_fabric_net_id }
87       security_groups: [ { get_param: security_group} ]
88       fixed_ips: [ { subnet_id: { get_param: ctrl_fabric_subnet_id } } ]
89       value_specs:
90         extra_dhcp_opts:
91         - {opt_name: interface-mtu, opt_value: { get_param: iom_mtu } }
92
93   iom_data_0_port:
94     type: OS::Neutron::Port
95     properties:
96       network_id: { get_param: data0_net_id }
97       security_groups: [ { get_param: security_group} ]
98       binding:vnic_type: "direct"
99       value_specs:
100         extra_dhcp_opts:
101         - {opt_name: interface-mtu, opt_value: { get_param: iom_mtu } }
102
103   iom_data_1_port:
104     type: OS::Neutron::Port
105     properties:
106       network_id: { get_param: data1_net_id }
107       security_groups: [ { get_param: security_group} ]
108       binding:vnic_type: "direct"
109       value_specs:
110         extra_dhcp_opts:
111         - {opt_name: interface-mtu, opt_value: { get_param: iom_mtu } }
112
113   iom_data_2_port:
114     type: OS::Neutron::Port
115     properties:
116       network_id: { get_param: data2_net_id }
117       security_groups: [ { get_param: security_group} ]
118       binding:vnic_type: "direct"
119       value_specs:
120         extra_dhcp_opts:
121         - {opt_name: interface-mtu, opt_value: { get_param: iom_mtu } }
122         
123   iom_data_3_port:
124     type: OS::Neutron::Port
125     properties:
126       network_id: { get_param: data3_net_id }
127       security_groups: [ { get_param: security_group} ]
128       binding:vnic_type: "direct"
129       value_specs:
130         extra_dhcp_opts:
131         - {opt_name: interface-mtu, opt_value: { get_param: iom_mtu } }
132                         
133   IOM:
134     type: OS::Nova::Server
135     depends_on: [ iom_mgt_0_port, iom_ctrl_fabric_0_port, iom_data_0_port, iom_data_1_port, iom_data_2_port, iom_data_3_port ]
136     properties:
137       name: { get_param: vm_name }
138       metadata:
139         vnf_id: { get_param: vnf_id }
140         vf_module_id: { get_param: vf_module_id }
141       image: { get_param: iom_image_name }
142       flavor: { get_param: iom_flavor_name }
143       availability_zone: { get_param: availability_zone_0 }
144       config_drive: "true"
145       user_data: { get_param: iom_smbios }
146       user_data_format: "RAW"
147       networks:
148         - port: { get_resource: iom_mgt_0_port }
149         - port: { get_resource: iom_ctrl_fabric_0_port }
150         - port: { get_resource: iom_data_0_port }
151         - port: { get_resource: iom_data_1_port }
152         - port: { get_resource: iom_data_2_port }
153         - port: { get_resource: iom_data_3_port }