1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
heat_template_version: 2013-05-23
description: cmaui server template for vMMSC
parameters:
shared_network_id1:
type: string
description: UID of OAM network
p2:
type: string
description: UID of OAM network
cmaui_names:
type: comma_delimited_list
description: CMAUI1, CMAUI2 server names
abc_names:
type: comma_delimited_list
description: CMAUI1, CMAUI2 server names
security_group_name:
type: not_important
description: not impotrtant
cmaui_image:
type: string
description: Image for CMAUI server
abc_image:
type: string
description: Image for CMAUI server
availability_zone_0:
type: string
label: availabilityzone name
description: availabilityzone name
cmaui_flavor:
type: string
description: Flavor for CMAUI server
abc_flavor:
type: string
description: Flavor for CMAUI server
cmaui_oam_ips:
type: string
abc_oam_ips:
type: string
oam_sec_group_name:
type: string
lb_st_interface_type_oam:
type: string
template_PortTuple_LB1:
type: string
lb_st_vlan_type_oam:
description: dummy
type: string
mac_address:
type: string
virtual_ip_address:
type: string
virtual_ipv6_address:
type: string
vlan_ids:
type: string
subinterface_name_prefix:
type: string
subinterface_instance_index:
type: number
resources:
template_VMInt_OAM_lb_1:
type: OS::ContrailV2::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
}
virtual_network_refs: [{ get_param: shared_network_id1 }]
port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
security_group_refs: [{ get_param: oam_sec_group_name}]
template_Vlan_1:
type: OS::ContrailV2::VirtualMachineInterface
properties:
name:
str_replace:
template: $NAME$VLAN
params:
$NAME: { get_param: subinterface_name_prefix }
$VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
}
virtual_machine_interface_mac_addresses:
{
virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
}
virtual_machine_interface_allowed_address_pairs:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
}
},
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
}
}
]
}
virtual_network_refs: [{ get_param: shared_network_id1 }]
virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_1 }]
template_VMInt_OAM_lb_2:
type: OS::ContrailV2::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
}
virtual_network_refs: [{ get_param: p2 }]
port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
security_group_refs: [{ get_param: oam_sec_group_name}]
template_Vlan_2:
type: OS::ContrailV2::VirtualMachineInterface
properties:
name:
str_replace:
template: $NAME$VLAN
params:
$NAME: { get_param: subinterface_name_prefix }
$VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
}
virtual_machine_interface_mac_addresses:
{
virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
}
virtual_machine_interface_allowed_address_pairs:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
}
},
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
}
}
]
}
virtual_network_refs: [{ get_param: p2 }]
virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_2 }]
template_VMInt_OAM_lb_3:
type: OS::ContrailV2::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: lb_st_interface_type_oam },
}
virtual_network_refs: [{ get_param: p2 },{ get_param: shared_network_id1 }]
port_tuple_refs: [{ get_param: template_PortTuple_LB1 }]
security_group_refs: [{ get_param: oam_sec_group_name}]
template_Vlan_3:
type: OS::ContrailV2::VirtualMachineInterface
properties:
name:
str_replace:
template: $NAME$VLAN
params:
$NAME: { get_param: subinterface_name_prefix }
$VLAN: { get_param: [ vlan_ids, { get_param: subinterface_instance_index } ] }
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_sub_interface_vlan_tag: { get_param: lb_st_vlan_type_oam }
}
virtual_machine_interface_mac_addresses:
{
virtual_machine_interface_mac_addresses_mac_address: [{ get_param: mac_address }],
}
virtual_machine_interface_allowed_address_pairs:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair: [
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ip_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 32
}
},
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: active-standby,
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: { get_param: mac_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: virtual_ipv6_address },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: 128
}
}
]
}
virtual_network_refs: [{ get_param: p2 },{ get_param: shared_network_id1 }]
virtual_machine_interface_refs: [{ get_resource: template_VMInt_OAM_lb_3 }]
abc_port_1:
type: OS::Neutron::Port
properties:
network: { get_param: p2 }
fixed_ips: [{"ip_address": {get_param: [abc_oam_ips, 0]}}]
security_groups: [{get_param: security_group_name}]
replacement_policy: AUTO
server_cmaui:
type: OS::Nova::Server
properties:
name: { get_param: [cmaui_names, 0]}
image: { get_param: cmaui_image }
availability_zone: { get_param: availability_zone_0 }
flavor: { get_param: cmaui_flavor }
networks:
- port: { get_resource: template_VMInt_OAM_lb_1 }
- port: { get_resource: template_VMInt_OAM_lb_2 }
- port: { get_resource: template_VMInt_OAM_lb_3 }
server_abc:
type: OS::Nova::Server
properties:
name: { get_param: [abc_names, 0]}
image: { get_param: abc_image }
availability_zone: { get_param: availability_zone_0 }
flavor: { get_param: abc_flavor }
networks:
- port: { get_resource: abc_port_1 }
|