-
Notifications
You must be signed in to change notification settings - Fork 1
/
contrail-vm-v4v6.yaml
110 lines (93 loc) · 3.57 KB
/
contrail-vm-v4v6.yaml
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
heat_template_version: 2015-04-30
parameters:
management_network:
type: string
description: Name of management network to be created
left_vn:
type: string
description: Name of left network to be created
right_vn:
type: string
description: Name of right network to be created
template_VirtualNetwork_1:
type: string
description: Name of management network to be created
template_VirtualNetwork_2:
type: string
description: Name of left network to be created
template_VirtualNetwork_3:
type: string
description: Name of right network to be created
svm_name:
type: string
description: Name of the SVM
flavor:
type: string
description: Flavor of the end VMs
image:
type: string
description: Name of the end VM image
instance_ip_family_v6:
type: string
description: instance_ip_family for the InstanceIp
resources:
template_VirtualMachineInterface_1:
type: OS::Contrail::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: template_VirtualNetwork_1 },
}
virtual_network_refs: { get_param: management_network }
template_VirtualMachineInterface_2:
type: OS::Contrail::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: template_VirtualNetwork_2 },
}
virtual_network_refs: { get_param: left_vn }
template_VirtualMachineInterface_3:
type: OS::Contrail::VirtualMachineInterface
properties:
virtual_machine_interface_properties:
{
virtual_machine_interface_properties_service_interface_type: { get_param: template_VirtualNetwork_3 },
}
virtual_network_refs: { get_param: right_vn }
template_InstanceIp_1:
type: OS::Contrail::InstanceIp
depends_on: [ template_VirtualMachineInterface_1 ]
properties:
virtual_machine_interface_refs: { get_resource: template_VirtualMachineInterface_1 }
virtual_network_refs: { get_param: template_VirtualNetwork_1 }
template_InstanceIp_2:
type: OS::Contrail::InstanceIp
depends_on: [ template_VirtualMachineInterface_2 ]
properties:
virtual_machine_interface_refs: { get_resource: template_VirtualMachineInterface_2 }
virtual_network_refs: { get_param: template_VirtualNetwork_2 }
template_InstanceIp_2_1:
type: OS::Contrail::InstanceIp
depends_on: [ template_VirtualMachineInterface_2 ]
properties:
virtual_machine_interface_refs: { get_resource: template_VirtualMachineInterface_2 }
virtual_network_refs: { get_param: template_VirtualNetwork_2 }
instance_ip_family: { get_param: instance_ip_family_v6 }
template_InstanceIp_3:
type: OS::Contrail::InstanceIp
depends_on: [ template_VirtualMachineInterface_3 ]
properties:
virtual_machine_interface_refs: { get_resource: template_VirtualMachineInterface_3 }
virtual_network_refs: { get_param: template_VirtualNetwork_3 }
instance:
type: OS::Nova::Server
depends_on: [ template_InstanceIp_1, template_InstanceIp_2, template_InstanceIp_2_1, template_InstanceIp_3 ]
properties:
name: {get_param: svm_name }
image: { get_param: image }
flavor: { get_param: flavor }
networks:
- port: { get_resource: template_VirtualMachineInterface_1 }
- port: { get_resource: template_VirtualMachineInterface_2 }
- port: { get_resource: template_VirtualMachineInterface_3 }