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
|
heat_template_version: 2015-04-30
description: |
stark nested template
parameters:
stark_volumes:
type: comma_delimited_list
description: ndjsfka
index:
type: number
description: nsadlf
dummy_net_id:
type: string
description: nsdaljfnsak
dummy_subnet_id:
type: string
description: nsdaljfnsak
stark_dummy_ips:
type: comma_delimited_list
description: dsnafljsadnlfks
vnf_name:
label: VNF name
description: this name will also be used on VM server and other resources.
type: string
vnf_id:
label: VNF ID
description: 'This ID will be passed as metadata on all Nova Servers, Cinder Volumes, and any other resource that supports metadata'
type: string
vf_module_id:
type: string
description: Unique ID for this VF Module instance
vf_module_index:
type: string
description: Unique ID for this VF Module instance
vf_module_name:
type: string
description: Unique name for this VF Module instance
vm_role:
type: string
description: role tagged to VM
stark_flavor_name:
label: VMs flavor
description: The JSON map containing the nova Flavors to be used for the VM Servers
type: string
stark_image_name:
type: string
description: "stark image name"
stark_names:
type: comma_delimited_list
description: VM name for stark VM 1
workload_context:
type: string
description: Workload Context for this VNF instance
environment_context:
type: string
description: Environment Context for this VNF instance
stark_dummy_floating_ip:
type: string
description: Test floating IP test
int_mummy_net_id:
type: string
description: Test floating IP test
int_mummy_subnet_id:
type: string
description: Test floating IP test
stark_int_mummy_ips:
type: comma_delimited_list
description: Test floating IP test
oam_net_fqdn:
type: string
description: nsdaklfnsaklfsdl
oam2_net_fqdn:
type: string
description: ndjfls
instance_ip_address:
type: string
description: nsdlfkn
mycontrailip:
type: string
description: njsaf
resources:
fw_0_oam_protected_vmi_0_IP_0:
type: OS::ContrailV2::InstanceIp
properties:
instance_ip_address: { get_param: instance_ip_address }
fw_0_oam_vmi_0:
type: OS::ContrailV2::VirtualMachineInterface
properties:
virtual_network_refs:
- get_param: oam_net_fqdn
- get_param: oam2_net_fqdn
virtual_machine_interface_allowed_address_pairs:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair:
[{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip:
{
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix: { get_param: mycontrailip },
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_ip_ip_prefix_len: "fasdfas",
},
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_mac: "test123",
virtual_machine_interface_allowed_address_pairs_allowed_address_pair_address_mode: "asdfasdf",
}],
}
stark_0_dummy_port_0:
type: OS::Neutron::Port
properties:
network: { get_param: dummy_net_id }
fixed_ips:
- subnet: { get_param: dummy_subnet_id }
ip_address: { get_param: [stark_dummy_ips, { get_param: index }] }
allowed_address_pairs:
- ip_address: { get_param: stark_dummy_floating_ip }
stark_0_int_mummy_port_0:
type: OS::Neutron::Port
properties:
network: { get_param: int_mummy_net_id }
fixed_ips:
- subnet: { get_param: int_mummy_subnet_id }
ip_address: { get_param: [stark_int_mummy_ips, { get_param: index }] }
stark_server_0:
type: OS::Nova::Server
properties:
name: { get_param: [stark_names, { get_param: index }] }
image: { get_param: stark_image_name}
flavor: { get_param: stark_flavor_name }
networks:
- port: { get_resource: stark_0_dummy_port_0 }
- port: { get_resource: stark_0_int_mummy_port_0 }
metadata:
vnf_id: {get_param: vnf_id}
vnf_name: {get_param: vnf_name}
vf_module_id: {get_param: vf_module_id}
vf_module_index: {get_param: vf_module_index}
vf_module_name: {get_param: vf_module_name}
vm_role: {get_param: vm_role}
workload_context: {get_param: workload_context }
environment_context: {get_param: environment_context }
stark_volume_attachment_0:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: {get_resource: stark_server_0 }
volume_id: {get_param: [stark_volumes, { get_param: index }] }
|