e2e268ed6ef3032fc75336f0bad4189f0336fdad
[sdc.git] /
1 heat_template_version: 2013-05-23
2 description: >
3   SC1, SC2, PL3 and PL4. This is the main template, to be used to create an initial stack, with 1 mated pair
4 parameters:
5   ntp_servers:
6     type: comma_delimited_list
7     description: comma delimited list of NTP servers required by System Controller VMs. Exactly 2 IPv4 values are required
8   sbg_pl_flavor_name:
9     type: string
10     description: Flavor to use for PL VM. Minimum 8 non-HT vCPU and 64GB RAM required
11   sbg_sc_flavor_name:
12     type: string
13     description: Flavor to use for SC VM. Minimum 4 non-HT vCPU and 16GB RAM required
14   vnf_id:
15     type: string
16     description: Unique ID for this VF instance
17   vf_module_id:
18     type: string
19     description: Unique ID for this VNF Module instance
20   sbg_sc_names:
21     type: comma_delimited_list
22     description: comma delimited list of VM names assigned to System Controller VMs
23   sbg_pl_names:
24     type: comma_delimited_list
25     description: comma delimited list of VM names assigned to Payload VMs
26   sbg_internal_cidr:
27     type: string
28     description: Network address (CIDR notation) for SBG intra-VM communication, IPv4. Don't deviate from default!
29     constraints:
30       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}\/[1-2][0-9]'
31         description: A valid IPv4 CIDR notation must be provided, e.g. 192.168.0.0/24
32   sbg_internal_allocation_pool_start_ip:
33     type: string
34     description: The start IP of the Internal network's allocation pool. Don't deviate from default!
35     constraints:
36       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
37         description: A valid IPv4 address must be provided, e.g 169.254.100.253
38   sbg_internal_allocation_pool_end_ip:
39     type: string
40     description: The end IP of the Internal network's allocation pool. Don't deviate from default!
41     constraints:
42       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
43         description: A valid IPv4 address must be provided, e.g 169.254.100.254
44   internal_net_id:
45     type: string
46     description: the UUID of the operator-created Internal network
47     constraints:
48       - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
49         description: A valid OpenStack UUID must be provided
50   sbg_internal_ips:
51     type: comma_delimited_list
52     description: comma delimited list of IPv4 addresses of SBG VMs on the Internal network. Don't deviate from the default values.
53   sbg_internal_mac_addresses:
54     type: comma_delimited_list
55     description: comma delimited list of MAC addresses for the VMs on the Internal network
56   sbg_management_cidr:
57     type: string
58     description: Network address (CIDR notation) for SBG Management Network, IPv4
59     constraints:
60       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}\/[1-2][0-9]'
61         description: A valid IPv4 CIDR notation must be provided, e.g. 192.168.0.0/24
62   sbg_management_gateway_ip_0:
63     type: string
64     description: IPv4 IP address of the default gateway on Management network
65     constraints:
66       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
67         description: A valid IPv4 address must be provided, e.g 192.168.0.1
68   management_net_id:
69     type: string
70     description: the UUID of the operator-created Management network
71     constraints:
72       - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
73         description: A valid OpenStack UUID must be provided
74   management_subnet_id:
75     type: string
76     description: the UUID of the operator-created Management subnet, IPv4
77     constraints:
78       - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
79         description: A valid OpenStack UUID must be provided
80   sbg_management_mac_addresses:
81     type: comma_delimited_list
82     description: comma delimited list of MAC addresses for the VMs on the Management network
83   sbg_management_ips:
84     type: comma_delimited_list
85     description: comma delimited list of IPv4 addresses of SBG VMs on the Management network.
86   trunk_net_id:
87     type: string
88     description: the UUID of the operator-created Traffic network
89     constraints:
90        - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
91          description: A valid OpenStack UUID must be provided
92   core_subnet_id:
93     type: string
94     description: the UUID of the operator-created Core subnet, IPv4
95     constraints:
96        - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
97          description: A valid OpenStack UUID must be provided
98   sbg_AVPN_count:
99     type: number
100     description: The number of AVPN networks
101     constraints:
102        - range: { min: 1, max: 999 }
103   avpn_net_id:
104     type: comma_delimited_list
105     description: comma delimited list of the UUIDs of the operator-created AVPN networks
106   sbg_AVPN_vlan_tag_list:
107     type: comma_delimited_list
108     description: comma delimited list of internal VLAN TAG(s) used by AVPN networks
109   avpn_subnet_id:
110     type: comma_delimited_list
111     description: comma delimited list of the UUIDs of the operator created IPv4 AVPN subnets
112   sbg_avpn_ips:
113     type: comma_delimited_list
114     description: >
115        comma delimited list of IPv4 IPs to be used on AVPN networks. n*2 IP address expected where n is the number of PL VM pairs. The first two addresses are assigned to the first PL VM pair, second two IPs to the second PL VM pair, and so on. Note: this is true regardless of the number of AVPN networks and sbg_AVPN_count.
116   dummy_subnet_id:
117     type: string
118     description: the UUID of the operator-created dummy subnet, IPv4
119     constraints:
120        - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
121          description: A valid OpenStack UUID must be provided
122   sbg_management_floating_ip:
123     type: string
124     description: Moveable Management IP (VIP), IPv4
125     constraints:
126       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
127         description: A valid IPv4 address must be provided, e.g 192.168.0.1
128   availability_zone_0:
129     type: string
130     description: First availability zone ID or Name.
131   sbg_nfs_floating_ip:
132     type: string
133     description: Moveable IP (VIP) for NFS server on the Internal network, IPv4. Don't deviate from default!
134     constraints:
135       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
136         description: A valid IPv4 address must be provided, e.g 192.168.0.1
137   sbg_comte_floating_ip:
138     type: string
139     description: Moveable IP (VIP) for COM on the Internal network, IPv4. Don't deviate from default!
140     constraints:
141       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
142         description: A valid IPv4 address must be provided, e.g 192.168.0.1
143   sbg_boot_floating_ip:
144     type: string
145     description: Moveable IP (VIP) for TFTP server on the Internal network, IPv4. Don't deviate from default!
146     constraints:
147       - allowed_pattern: '(?:[0-9]{1,3}\.){3}[0-9]{1,3}'
148         description: A valid IPv4 address must be provided, e.g 192.168.0.1
149
150   sbg_sc_volume_id_0:
151     type: string
152     description: the UUID of the pre-created Cinder volume attached to SC-1 as root volume
153     constraints:
154        - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
155          description: A valid OpenStack UUID must be provided
156   sbg_sc_volume_id_1:
157     type: string
158     description: the UUID of the pre-created Cinder volume attached to SC-1 as tools volume
159     constraints:
160        - allowed_pattern: '[a-f0-9]{8}\-(?:[a-f0-9]{4}\-){3}[a-f0-9]{12}'
161          description: A valid OpenStack UUID must be provided
162   nested_sbg_AVPN_vlan_tag_list:
163     type: comma_delimited_list
164     description: the CDL representing the vlan ID list
165   nested_avpn_net_id:
166     type: comma_delimited_list
167     description: the CDL representing the networks to attach to the ports
168   nested_avpn_subnet_id:
169     type: comma_delimited_list
170     description: comma delimited list of the UUIDs of the operator created IPv4 AVPN subnets
171   nested_sbg_avpn_ip_0:
172     type: string
173     description: IPv4 IP address for AVPN networks. Same IP is used for all AVPNs
174   nested_sbg_AVPN_counter:
175     type: number
176     description: current array_index
177   nested_trunk_port_id:
178     type: string
179     description: string containint the trunk parrent port
180
181 resources:
182   sbg_sc_internal_0_port_0:
183     type: OS::Neutron::Port
184     properties:
185       replacement_policy: AUTO
186       network_id: { get_param: internal_net_id }
187       fixed_ips:
188       - ip_address: { get_param: [sbg_internal_ips ,0] }
189       allowed_address_pairs:
190       - ip_address: { get_param: sbg_nfs_floating_ip }
191       - ip_address: { get_param: sbg_comte_floating_ip }
192       - ip_address: { get_param: sbg_boot_floating_ip }
193       mac_address: { get_param: [sbg_internal_mac_addresses ,0] }
194
195   sbg_sc_management_1_port_0:
196     type: OS::Neutron::Port
197     properties:
198       replacement_policy: AUTO
199       network_id: { get_param: management_net_id }
200       fixed_ips:
201       - ip_address: { get_param: [sbg_management_ips ,0] }
202       allowed_address_pairs:
203       - ip_address: { get_param: sbg_management_floating_ip }
204       mac_address: { get_param: [sbg_management_mac_addresses ,0] }
205
206   sbg_sc_0:
207     type: OS::Nova::Server
208     properties:
209       name: { get_param: [sbg_sc_names, 0]}
210       metadata:
211         vnf_id: { get_param: vnf_id }
212         vf_module_id: { get_param: vf_module_id }
213       availability_zone: { get_param: availability_zone_0 }
214       flavor: { get_param: sbg_sc_flavor_name }
215       networks:
216       - port: { get_resource: sbg_sc_internal_0_port_0 }
217       - port: { get_resource: sbg_sc_management_1_port_0 }
218       config_drive: "true"
219       user_data_format: RAW